mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 21:55:01 +07:00
MagicConstantInspection: cache on realElement
This commit is contained in:
+1
-1
@@ -454,7 +454,7 @@ public class MagicConstantInspection extends AbstractBaseJavaLocalInspectionTool
|
||||
} else {
|
||||
realElement = element;
|
||||
}
|
||||
return CachedValuesManager.getCachedValue(element, () ->
|
||||
return CachedValuesManager.getCachedValue(realElement, () ->
|
||||
CachedValueProvider.Result.create(AnnotationUtil.getAllAnnotations(realElement, true, null, false),
|
||||
PsiModificationTracker.MODIFICATION_COUNT));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user