mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
IDEA-179370 "Constant conditions and exceptions" quickfix "Replace with 'x != null ?:'" does nothing
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
// "Replace with 'njc != null ?:'" "true"
|
||||
public class JC {
|
||||
class Inner {}
|
||||
|
||||
public static void main(String[] args) {
|
||||
JC njc = Math.random() > 0.5 ? new JC() : null;
|
||||
System.out.println(njc != null ? njc.new Inner() : null);
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Replace with 'njc != null ?:'" "true"
|
||||
public class JC {
|
||||
class Inner {}
|
||||
|
||||
public static void main(String[] args) {
|
||||
JC njc = Math.random() > 0.5 ? new JC() : null;
|
||||
System.out.println(njc.new In<caret>ner());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user