mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
drop annotation cache on every psi change (injected file changes don't increase java structure mod count)
This commit is contained in:
+1
-1
@@ -404,7 +404,7 @@ public class MagicConstantInspection extends BaseJavaLocalInspectionTool {
|
||||
@Override
|
||||
public Result<PsiAnnotation[]> compute() {
|
||||
return Result.create(AnnotationUtil.getAllAnnotations(element, true, null),
|
||||
PsiModificationTracker.JAVA_STRUCTURE_MODIFICATION_COUNT);
|
||||
PsiModificationTracker.MODIFICATION_COUNT);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -133,7 +133,7 @@ public class AnnotationUtil {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
return Result.create(value, PsiModificationTracker.JAVA_STRUCTURE_MODIFICATION_COUNT);
|
||||
return Result.create(value, PsiModificationTracker.MODIFICATION_COUNT);
|
||||
}
|
||||
});
|
||||
return map.get(annotationNames);
|
||||
@@ -169,7 +169,7 @@ public class AnnotationUtil {
|
||||
|
||||
}
|
||||
};
|
||||
return Result.create(value, PsiModificationTracker.JAVA_STRUCTURE_MODIFICATION_COUNT);
|
||||
return Result.create(value, PsiModificationTracker.MODIFICATION_COUNT);
|
||||
}
|
||||
});
|
||||
return map.get(annotationNames);
|
||||
@@ -224,7 +224,7 @@ public class AnnotationUtil {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
return Result.create(value, PsiModificationTracker.JAVA_STRUCTURE_MODIFICATION_COUNT);
|
||||
return Result.create(value, PsiModificationTracker.MODIFICATION_COUNT);
|
||||
}
|
||||
});
|
||||
return map.get(annotationNames);
|
||||
|
||||
+1
-1
@@ -281,7 +281,7 @@ public class AnnotationUtilEx {
|
||||
@Nullable
|
||||
@Override
|
||||
public Result<PsiAnnotation[]> compute() {
|
||||
return Result.create(getHierarchyAnnotations(listOwner, modifierList), PsiModificationTracker.JAVA_STRUCTURE_MODIFICATION_COUNT);
|
||||
return Result.create(getHierarchyAnnotations(listOwner, modifierList), PsiModificationTracker.MODIFICATION_COUNT);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user