mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-161202 Replace Collections.sort with List.sort in Java-8
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// "Replace with List.sort" "true"
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
public class Main {
|
||||
public static void doSort(List<String> list) {
|
||||
list.sort(String.CASE_INSENSITIVE_ORDER);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Replace with List.sort" "true"
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
public class Main {
|
||||
public static void doSort(List<String> list) {
|
||||
Collections.so<caret>rt(list, String.CASE_INSENSITIVE_ORDER);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Replace with List.sort" "false"
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
public class Main {
|
||||
public static void doSort(List<String> list) {
|
||||
Collections.so<caret>rt(list);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user