mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
InspectionsConfigTreeComparator: isEmpty() used
This commit is contained in:
+2
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user