mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-21 20:54:49 +07:00
11 lines
185 B
Java
11 lines
185 B
Java
// "Replace condition with Objects.requireNonNullElse" "true"
|
|
|
|
import java.util.*;
|
|
|
|
class X {
|
|
String y;
|
|
|
|
static String test(X x) {
|
|
return x.y == null ? "foo"<caret> : x.y;
|
|
}
|
|
} |