mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-20 20:45:15 +07:00
10 lines
269 B
Java
10 lines
269 B
Java
// "Replace Collections.singleton().stream() with Stream.of()" "true"
|
|
|
|
import java.util.*;
|
|
import java.util.stream.Stream;
|
|
|
|
class CollectionSingletonStream {
|
|
Stream<String> stream(String[] args) {
|
|
return Collections.<String>singleton("xyz").st<caret>ream();
|
|
}
|
|
} |