mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-08 21:52:48 +07:00
for "Null check can be replaced with method call" inspection GitOrigin-RevId: ffa45cce88afb341cdeb9a49d4ee256251865bfc
13 lines
261 B
Java
13 lines
261 B
Java
// "Replace conditional expression with 'Objects.requireNonNullElse()' call" "true"
|
|
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
void work(Object o) {
|
|
|
|
}
|
|
|
|
public void test(Object o) {
|
|
work(/*1*/o/*2*/ <caret>== /*3*/null/*4*/?/*5*/ ""/*6*/ :/*7*/ o/*8*/);
|
|
}
|
|
} |