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