mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 21:11:28 +07:00
avoid highlighting the same text range twice
GitOrigin-RevId: 411430679ddb43185c4b6081524d3250982a72ff
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c820cfb56b
commit
4ab5c49640
@@ -79,6 +79,7 @@ public final class HighlightClassUtil {
|
||||
return null;
|
||||
}
|
||||
|
||||
@PropertyKey(resourceBundle = JavaErrorBundle.BUNDLE)
|
||||
final String messageKey;
|
||||
final String referenceName;
|
||||
if (aClass instanceof PsiEnumConstantInitializer enumConstant) {
|
||||
|
||||
@@ -1017,7 +1017,7 @@ public class HighlightVisitorImpl extends JavaElementVisitor implements Highligh
|
||||
else if (parent instanceof PsiClass aClass) {
|
||||
try {
|
||||
if (!hasErrorResults()) add(HighlightClassUtil.checkDuplicateNestedClass(aClass));
|
||||
if (!hasErrorResults()) {
|
||||
if (!hasErrorResults() && !(aClass instanceof PsiAnonymousClass)/* anonymous class is highlighted in HighlightClassUtil.checkAbstractInstantiation()*/) {
|
||||
TextRange textRange = HighlightNamesUtil.getClassDeclarationTextRange(aClass);
|
||||
add(HighlightClassUtil.checkClassMustBeAbstract(aClass, textRange));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user