Introduce variable for clarity
This commit is contained in:
@@ -173,9 +173,10 @@ public class JetPsiChecker implements Annotator {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// General annotation
|
// Generic annotation
|
||||||
|
Annotation errorAnnotation = holder.createErrorAnnotation(diagnostic.getFactory().getTextRange(diagnostic), getMessage(diagnostic));
|
||||||
registerQuickFix(
|
registerQuickFix(
|
||||||
holder.createErrorAnnotation(diagnostic.getFactory().getTextRange(diagnostic), getMessage(diagnostic)),
|
errorAnnotation,
|
||||||
diagnostic);
|
diagnostic);
|
||||||
}
|
}
|
||||||
else if (diagnostic.getSeverity() == Severity.WARNING) {
|
else if (diagnostic.getSeverity() == Severity.WARNING) {
|
||||||
|
|||||||
Reference in New Issue
Block a user