mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-159541 Minor refactoring in UnstableApiUsageInspection
This commit is contained in:
@@ -72,19 +72,14 @@ public class UnstableApiUsageInspection extends LocalInspectionTool {
|
||||
continue;
|
||||
}
|
||||
|
||||
boolean problemRegistered = false;
|
||||
for (String annotation : unstableApiAnnotations) {
|
||||
if (modifierListOwner.hasAnnotation(annotation)) {
|
||||
holder.registerProblem(reference,
|
||||
DevKitBundle.message("inspections.unstable.api.usage.description", getReferenceText(reference)),
|
||||
ProblemHighlightType.GENERIC_ERROR_OR_WARNING);
|
||||
problemRegistered = true;
|
||||
break;
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (problemRegistered) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user