mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
inspection tool window: do not need sort list with size == 1
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user