mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 21:55:01 +07:00
make some clients independent of order of results in Query.findAll()
GitOrigin-RevId: df14c535f9ff642399ed42e123563dac3db8bb20
This commit is contained in:
committed by
intellij-monorepo-bot
parent
15e30d4520
commit
2b081e39ab
+1
-1
@@ -3,7 +3,7 @@ import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
public class Test {
|
||||
class Test {
|
||||
public String[] testToArray(String[] args) {
|
||||
return Arrays.stream(args).distinct().sorted().toArray(String[]::new);
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
public class Test {
|
||||
class Test {
|
||||
public String[] testToArray(String[] args) {
|
||||
Set<String> set = Arrays.stream(args).co<caret>llect(Collectors.toCollection(TreeSet::new));
|
||||
return set.toArray(new String[set.size()]);
|
||||
|
||||
Reference in New Issue
Block a user