mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-80288 (IOE: PsiElementFactoryImpl.createKeyword)
This commit is contained in:
+3
@@ -72,6 +72,9 @@ public class UtilityClassCanBeEnumInspection extends BaseInspection {
|
||||
@Override
|
||||
protected void doFix(Project project, ProblemDescriptor descriptor) {
|
||||
final PsiElement element = descriptor.getPsiElement();
|
||||
if (!PsiUtil.isLanguageLevel5OrHigher(element)) {
|
||||
return;
|
||||
}
|
||||
final PsiElement parent = element.getParent();
|
||||
if (!(parent instanceof PsiClass)) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user