mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-22 04:43:02 +07:00
18 lines
323 B
Java
18 lines
323 B
Java
// "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);
|
|
}
|
|
}
|
|
} |