mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-31 01:43:23 +07:00
for "Null check can be replaced with method call" inspection GitOrigin-RevId: ffa45cce88afb341cdeb9a49d4ee256251865bfc
9 lines
198 B
Java
9 lines
198 B
Java
// "Replace conditional expression with 'Objects.requireNonNullElse()' call" "true"
|
|
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
public void test(Object o) {
|
|
o = Objects.requireNonNullElse(o, "");
|
|
}
|
|
} |