Skip to content

Commit

Permalink
1037: Исключить BaseForm из проверок для форм
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimeg committed Jun 6, 2022
1 parent 7b0e814 commit 609b0dd
Showing 1 changed file with 14 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -26,12 +35,8 @@ public ITopObjectFilter contributeTopObjectFilter()

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());
}
}

0 comments on commit 609b0dd

Please sign in to comment.