mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-22 07:32:21 +07:00
14 lines
286 B
Java
14 lines
286 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;
|
|
Util.method(Objects.requireNonNullElse(o, "Hello"));
|
|
}
|
|
} |