mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IG: don't register INFORMATION in batch mode
This commit is contained in:
+1
@@ -297,6 +297,7 @@ public class ConditionalExpressionInspection extends BaseInspection {
|
||||
}
|
||||
final boolean nestedConditional = ParenthesesUtils.getParentSkipParentheses(expression) instanceof PsiConditionalExpression;
|
||||
quickFixOnly |= nestedConditional;
|
||||
if (quickFixOnly && !isOnTheFly()) return;
|
||||
registerError(expression, quickFixOnly ? ProblemHighlightType.INFORMATION : ProblemHighlightType.GENERIC_ERROR_OR_WARNING,
|
||||
!expressionContext, nestedConditional);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user