EA-109591 - assert: UpdateHighlightersUtil.createOrReuseHighlighterFor

This commit is contained in:
Alexey Kudravtsev
2018-03-20 13:59:45 +03:00
parent 218ac0f865
commit e9622fc5e6
@@ -372,10 +372,12 @@ public class UpdateHighlightersUtil {
markup.changeAttributesInBatch(highlighter, changeAttributes);
}
boolean attributesSet = Comparing.equal(infoAttributes, highlighter.getTextAttributes());
assert attributesSet : "Info: " + infoAttributes +
"; colorsScheme: " + (colorsScheme == null ? "[global]" : colorsScheme.getName()) +
"; highlighter:" + highlighter.getTextAttributes();
if (infoAttributes != null) {
boolean attributesSet = Comparing.equal(infoAttributes, highlighter.getTextAttributes());
assert attributesSet : "Info: " + infoAttributes +
"; colorsScheme: " + (colorsScheme == null ? "[global]" : colorsScheme.getName()) +
"; highlighter:" + highlighter.getTextAttributes();
}
}
private static int getLayer(@NotNull HighlightInfo info, @NotNull SeverityRegistrar severityRegistrar) {