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