InspectionsConfigTreeComparator: isEmpty() used

This commit is contained in:
Tagir Valeev
2018-10-08 10:36:50 +07:00
parent a504e5b795
commit 5be3af93e0
@@ -12,12 +12,12 @@ public class InspectionsConfigTreeComparator {
.thenComparing(n -> getDisplayTextToSort(n.getText()), NaturalComparator.INSTANCE);
public static String getDisplayTextToSort(String s) {
if (s.length() == 0) {
if (s.isEmpty()) {
return s;
}
while (!Character.isLetterOrDigit(s.charAt(0))) {
s = s.substring(1);
if (s.length() == 0) {
if (s.isEmpty()) {
return s;
}
}