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