mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-20 11:36:16 +07:00
10 lines
305 B
Java
10 lines
305 B
Java
// "Replace Collections.emptySet().stream() with Stream.empty()" "true"
|
|
|
|
import java.util.*;
|
|
import java.util.stream.Stream;
|
|
|
|
class CollectionEmptySetStream {
|
|
Stream<String> stream(String[] args) {
|
|
return args.length == 1 ? Collections.<String>emptySet().st<caret>ream() : Arrays.stream(args);
|
|
}
|
|
} |