mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-22 00:19:11 +07:00
14 lines
264 B
Java
14 lines
264 B
Java
// "Replace condition with Stream.ofNullable" "true"
|
|
|
|
import java.util.*;
|
|
import java.util.stream.Stream;
|
|
|
|
class Util {
|
|
Stream method(Stream s) {return s;}
|
|
}
|
|
|
|
class Test {
|
|
public Stream test(Object val) {
|
|
return Util.method(Stream.ofNullable(val));
|
|
}
|
|
} |