mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
inplace introduce constant: restore expression from literal (IDEA-106893)
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
class B {
|
||||
public static void foo(boolean f) {
|
||||
Object[] objs = new Object[0];
|
||||
System.out.println(objs[<caret>9] != null ? Integer.valueOf(objs[9].toString()) : null);
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
class B {
|
||||
|
||||
public static final int NINE = 9;
|
||||
|
||||
public static void foo(boolean f) {
|
||||
Object[] objs = new Object[0];
|
||||
System.out.println(objs[NINE] != null ? Integer.valueOf(objs[NINE].toString()) : null);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user