blob: d8cdd818cf8df7dc41ed400fe664b3868c449c9f [file]
// "Replace condition with Stream.ofNullable" "true"
import java.util.*;
import java.util.stream.Stream;
class Other {
Object val = new Object();
}
class Test {
public Stream test(Other o) {
if<caret> (o.val == null) {
return Stream.empty();
} else {
return Stream.ofNullable(o.val);
}
}
}