mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
hide fix with possible dialogs in batch mode
This commit is contained in:
+3
-1
@@ -90,11 +90,13 @@ public class DefUseInspectionBase extends BaseJavaBatchLocalInspectionTool {
|
||||
}
|
||||
else {
|
||||
if (REPORT_REDUNDANT_INITIALIZER) {
|
||||
List<LocalQuickFix> fixes = ContainerUtil.createMaybeSingletonList(isOnTheFly ? createRemoveInitializerFix() : null);
|
||||
holder.registerProblem(psiVariable.getInitializer(),
|
||||
InspectionsBundle.message("inspection.unused.assignment.problem.descriptor2",
|
||||
"<code>" + psiVariable.getName() + "</code>", "<code>#ref</code> #loc"),
|
||||
ProblemHighlightType.LIKE_UNUSED_SYMBOL,
|
||||
createRemoveInitializerFix());
|
||||
fixes.toArray(new LocalQuickFix[fixes.size()])
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user