blob: e677c60466fc9891ba7cca5d78a1285c9f292b63 [file]
// "Replace condition with Objects.requireNonNullElse" "GENERIC_ERROR_OR_WARNING"
import java.util.*;
class Util {
String method(String s) {return s;}
}
class Test {
public void test(String o) {
Object another;
if<caret>(o == null) {
Util.method("Hello");
} else {
Util.method(o);
}
}
}