mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-23 05:07:31 +07:00
18 lines
305 B
Java
18 lines
305 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;
|
|
if<caret>(o == null) {
|
|
another = new Object();
|
|
} else {
|
|
another = o;
|
|
}
|
|
}
|
|
} |