1
0
mirror of https://github.com/1C-Company/v8-code-style.git synced 2024-12-13 13:48:40 +02:00

1037: Исключить BaseForm из проверок для форм

This commit is contained in:
Vadim Geraskin 2022-06-03 14:45:40 +07:00
parent 7b0e814a0c
commit 609b0ddfbc

View File

@ -1,6 +1,15 @@
/**
* Copyright (C) 2022, 1C
*/
/*******************************************************************************
* Copyright (C) 2022, 1C-Soft LLC and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* 1C-Soft LLC - initial API and implementation
*******************************************************************************/
package com.e1c.v8codestyle.form.check;
import com._1c.g5.v8.bm.core.IBmObject;
@ -26,12 +35,8 @@ public class SkipBaseFormExtension
private static boolean isBaseForm(Form form)
{
if (form != null && form.getMdForm().getObjectBelonging() == ObjectBelonging.ADOPTED
return form != null && form.getMdForm().getObjectBelonging() == ObjectBelonging.ADOPTED
&& form.getExtensionForm() != null && !form.getExtensionForm().eIsProxy()
&& (form.getBaseForm() == null || form.getBaseForm().eIsProxy()))
{
return true;
}
return false;
&& (form.getBaseForm() == null || form.getBaseForm().eIsProxy());
}
}