mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[Java. Intention Actions] IDEA-379084 Disable test to be run on implicit classes
GitOrigin-RevId: f106e3866ae7ba2df88211c0b33bad8fef7df155
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5a61b80dc1
commit
483ba28afe
+3
-3
@@ -40,7 +40,7 @@ public class JavaOutOfClassDefinitionPropertyTest extends LightJavaCodeInsightFi
|
||||
Supplier<MadTestingAction> fileAction =
|
||||
MadTestingUtil.performOnFileContents(myFixture, PathManager.getHomePath(), f -> f.getName().endsWith(".java"),
|
||||
this::doTestMoveMethodOutOfClassAndBack);
|
||||
PropertyChecker.customized()
|
||||
PropertyChecker
|
||||
.checkScenarios(fileAction);
|
||||
});
|
||||
}
|
||||
@@ -52,8 +52,8 @@ public class JavaOutOfClassDefinitionPropertyTest extends LightJavaCodeInsightFi
|
||||
PsiJavaFile psiJavaFile = ObjectUtils.tryCast(myFixture.getFile(), PsiJavaFile.class);
|
||||
if (psiJavaFile == null) return;
|
||||
PsiClass psiClass = findClass(file, psiJavaFile);
|
||||
// enum and annotation fields are not supported
|
||||
if (psiClass == null || psiClass.isEnum() || psiClass.isAnnotationType()) return;
|
||||
// enum, implicit classes and annotation fields are not supported
|
||||
if (psiClass == null || psiClass.isEnum() || psiClass.isAnnotationType() || psiClass instanceof PsiImplicitClass) return;
|
||||
List<PsiMember> members = findMembers(psiClass);
|
||||
int nMembers = members.size();
|
||||
if (nMembers == 0) return;
|
||||
|
||||
Reference in New Issue
Block a user