inspection view: do not append empty spaces to node's tails

This commit is contained in:
Dmitry Batkovich
2017-11-13 12:33:35 +03:00
parent 4176da474b
commit f43970a13a
@@ -38,15 +38,15 @@ public abstract class InspectionTreeTailRenderer {
}
public void appendTailText(InspectionTreeNode node) {
appendText(" ");
final String customizedTailText = node.getTailText();
if (customizedTailText != null) {
if (!customizedTailText.isEmpty()) {
appendText(" ");
appendText(" ");
appendText(customizedTailText, SimpleTextAttributes.GRAYED_ATTRIBUTES);
}
}
else {
appendText(" ");
LevelAndCount[] problemLevels = node.getProblemLevels();
if (problemLevels.length > MAX_LEVEL_TYPES) {
int sum = Arrays.stream(problemLevels).mapToInt(LevelAndCount::getCount).sum();