mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 03:07:47 +07:00
Redundant files removed (left after merging several tests together)
GitOrigin-RevId: 15755e36cbdfefdf493ce28c9b2155e7b2daa7d6
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b32c45d6c7
commit
3806f7df31
@@ -1,21 +0,0 @@
|
||||
// "Replace Stream API chain with loop" "true"
|
||||
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public class Main {
|
||||
private static List<Object> test(List<? extends Number> numbers) {
|
||||
List<Object> list = new ArrayList<>();
|
||||
Set<Number> uniqueValues = new HashSet<>();
|
||||
for (Number number : numbers) {
|
||||
if (uniqueValues.add(number)) {
|
||||
list.add(number);
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println(test(Arrays.asList(1,2,3,5,3,2,2,2,1,1,4,3)));
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
// "Replace Stream API chain with loop" "true"
|
||||
|
||||
import java.util.*;
|
||||
import java.util.stream.*;
|
||||
|
||||
public class Main {
|
||||
public List<String> testSorted(List<String> list) {
|
||||
List<String> result = new ArrayList<>();
|
||||
for (String s : list) {
|
||||
result.add(s);
|
||||
}
|
||||
result.sort(String.CASE_INSENSITIVE_ORDER);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
// "Replace Stream API chain with loop" "true"
|
||||
|
||||
import java.util.*;
|
||||
import java.util.stream.*;
|
||||
|
||||
public class Main {
|
||||
public List<String> testSorted(List<String> list) {
|
||||
List<String> result = new ArrayList<>();
|
||||
for (String s : list) {
|
||||
result.add(s);
|
||||
}
|
||||
result.sort(null);
|
||||
return result.toArray(new String[0]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user