mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-22 04:43:02 +07:00
14 lines
273 B
Java
14 lines
273 B
Java
// "Replace condition with Objects.requireNonNullElseGet" "true"
|
|
|
|
import java.util.*;
|
|
|
|
class Util {
|
|
String method(String s) {return s;}
|
|
}
|
|
|
|
class Test {
|
|
public void test(Object o) {
|
|
Object another;
|
|
another = Objects.requireNonNullElseGet(o, Object::new);
|
|
}
|
|
} |