mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-06 05:10:22 +07:00
Fixes IDEA-289497 'NullPointerException' recommendations contradiction GitOrigin-RevId: 07be3f2ee5ce03bd7380b563806fcad03fb2a0f5
9 lines
187 B
Java
9 lines
187 B
Java
// "Surround with 'if (i != null)'" "true"
|
|
class A {
|
|
void foo(int x){
|
|
String i = x > 0 ? "" : null;
|
|
if (i != null<caret>) {
|
|
i.hashCode();
|
|
}
|
|
}
|
|
} |