mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
inspection view: redundant clause is deleted in inspection presentation to add problems from global simple tool IDEA-162032
This commit is contained in:
+2
-4
@@ -211,10 +211,8 @@ public class DefaultInspectionToolPresentation implements ProblemDescriptionsPro
|
||||
if (context.isViewClosed() || !(refElement instanceof RefElement)) {
|
||||
return;
|
||||
}
|
||||
if (myToolWrapper instanceof LocalInspectionToolWrapper && !ApplicationManager.getApplication().isUnitTestMode()) {
|
||||
context.initializeViewIfNeed().doWhenDone(() -> {
|
||||
context.getView().addProblemDescriptors(myToolWrapper, refElement, descriptors);
|
||||
});
|
||||
if (!ApplicationManager.getApplication().isUnitTestMode()) {
|
||||
context.initializeViewIfNeed().doWhenDone(() -> context.getView().addProblemDescriptors(myToolWrapper, refElement, descriptors));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user