mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-21 20:54:49 +07:00
15 lines
264 B
Java
15 lines
264 B
Java
// "Replace condition with Objects.requireNonNullElse" "false"
|
|
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
void work(Object o) {}
|
|
|
|
private static Object nullable() {
|
|
return null;
|
|
}
|
|
|
|
public void test(Object o) {
|
|
work(o == null? "" <caret>: nullable());
|
|
}
|
|
} |