inspection tool window: do not need sort list with size == 1

This commit is contained in:
Dmitry Batkovich
2016-04-26 20:37:47 +03:00
parent 6e1ccd1527
commit 5f401a62cb
@@ -337,7 +337,9 @@ public class InspectionTree extends Tree {
}
if (descriptorChildren != null) {
Collections.sort(descriptorChildren, DESCRIPTOR_COMPARATOR);
if (descriptorChildren.size() > 1) {
Collections.sort(descriptorChildren, DESCRIPTOR_COMPARATOR);
}
descriptors.addAll(descriptorChildren);
}
}