mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-53184 (False positive unused field inspection for serialVersionUID fields)
This commit is contained in:
@@ -407,11 +407,11 @@ public class PostHighlightingPass extends TextEditorHighlightingPass {
|
||||
@NotNull PsiIdentifier identifier,
|
||||
@NotNull ProgressIndicator progress,
|
||||
@NotNull GlobalUsageHelper helper) {
|
||||
if (HighlightUtil.isSerializationImplicitlyUsedField(field)) {
|
||||
return null;
|
||||
}
|
||||
if (field.hasModifierProperty(PsiModifier.PRIVATE)) {
|
||||
if (!myRefCountHolder.isReferenced(field) && !isImplicitUsage(field, progress)) {
|
||||
if (HighlightUtil.isSerializationImplicitlyUsedField(field)) {
|
||||
return null;
|
||||
}
|
||||
String message = JavaErrorMessages.message("private.field.is.not.used", identifier.getText());
|
||||
|
||||
HighlightInfo highlightInfo = suggestionsToMakeFieldUsed(field, identifier, message);
|
||||
|
||||
Reference in New Issue
Block a user