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
273 B
Java
10 lines
273 B
Java
// "Replace Collections.singletonList().stream() with Stream.of()" "true"
|
|
|
|
import java.util.*;
|
|
import java.util.stream.Stream;
|
|
|
|
class CollectionSingletonListStream {
|
|
Stream<String> stream(String[] args) {
|
|
return Collections.singletonList("xyz").strea<caret>m();
|
|
}
|
|
} |