Introduce variable for clarity

This commit is contained in:
Andrey Breslav
2012-01-25 15:34:17 +04:00
parent 4f630ca390
commit 9d8abdac0c
@@ -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) {