mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-21 15:35:34 +07:00
Inspection to replace Collections.emptyList/Set().stream() with Stream.empty() and Collections.singleton[List](xyz).stream() with Stream.of(xyz) Arrays.<String[]>asList(stringArray).stream() is incorrectly converted to Arrays.<String[]>stream(stringArray)
10 lines
241 B
Java
10 lines
241 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 Stream.<String>of("xyz");
|
|
}
|
|
} |