mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-21 17:52:27 +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
267 B
Java
10 lines
267 B
Java
// "Replace Collections.singleton().stream() with Stream.of()" "true"
|
|
|
|
import java.util.*;
|
|
import java.util.stream.Stream;
|
|
|
|
class CollectionSingletonArrayStream {
|
|
Stream<String[]> stream(String[] args) {
|
|
return Col<caret>lections.singleton(args).stream();
|
|
}
|
|
} |