mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 10:48:09 +07:00
Fixes IDEA-289497 'NullPointerException' recommendations contradiction GitOrigin-RevId: 07be3f2ee5ce03bd7380b563806fcad03fb2a0f5
10 lines
240 B
Java
10 lines
240 B
Java
// "Replace with 'list != null ?:'" "true"
|
|
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
class A{
|
|
void test(@NotNull List l) {
|
|
final List list = Math.random() > 0.5 ? new List() : null;
|
|
test(list != null ? list : null<caret>);
|
|
}
|
|
} |