mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 18:50:54 +07:00
Fixes IDEA-289497 'NullPointerException' recommendations contradiction GitOrigin-RevId: 07be3f2ee5ce03bd7380b563806fcad03fb2a0f5
8 lines
187 B
Java
8 lines
187 B
Java
// "Replace with 'list != null ?:'" "true"
|
|
|
|
class A{
|
|
void test(){
|
|
List list = Math.random() > 0.5 ? new List() : null;
|
|
Object o = list != null ? list.get(0) : null<caret>;
|
|
}
|
|
} |