(no message)

This commit is contained in:
Alexey Kudravtsev
2005-03-29 21:28:49 +04:00
parent 8e151b032e
commit 261c9cd071
@@ -54,7 +54,8 @@ public class AnnotationHolderImpl extends SmartList<Annotation> implements Annot
}
private final Annotation createAnnotation(TextRange range, HighlightSeverity severity, String message) {
Annotation annotation = new Annotation(range.getStartOffset(), range.getEndOffset(), severity, message, "<html><body>" + XmlUtil.escapeString(message) + "</body></html>");
final String tooltip = message == null ? null : "<html><body>" + XmlUtil.escapeString(message) + "</body></html>";
Annotation annotation = new Annotation(range.getStartOffset(), range.getEndOffset(), severity, message, tooltip);
add(annotation);
return annotation;
}