mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-21 20:54:49 +07:00
13 lines
232 B
Java
13 lines
232 B
Java
// "Replace condition with Objects.requireNonNullElseGet" "INFORMATION"
|
|
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
public void test(Object o) {
|
|
if<caret>(o == null) {
|
|
return new Object();
|
|
} else {
|
|
return o;
|
|
}
|
|
}
|
|
} |