blob: 2e38f49be7108422a4c0b34088c2edcad097cfbc [file]
// "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) {
if<caret> (val == null) {
return Stream.empty();
} else {
return Stream.ofNullable(val);
}
}
}