mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
introduce field: extract error expression on class level ( IDEA-41570 )
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
class Test {
|
||||
public final int anInt = 2 + 2;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
public final Class aClass = Class.forName(Test.class.getName);
|
||||
|
||||
void foo() {
|
||||
Class clazz = aClass;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
class Test {
|
||||
public final int anInt = Integer.parseInt("");
|
||||
|
||||
void foo() {int i = anInt;}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
class Test {
|
||||
public final int anInt = Integer.parseInt("");
|
||||
int i = anInt;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
public final Integer integer = new Integer(0);
|
||||
|
||||
void foo() {
|
||||
Integer i = integer;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
class Test {
|
||||
public final int anInt = Integer.parseInt("");
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
class Test {
|
||||
2 <caret> + 2
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
<selection>Class.forName(Test.class.getName)</selection>
|
||||
|
||||
void foo() {
|
||||
Class clazz = Class.forName(Test.class.getName);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
class Test {
|
||||
Integer.pa<caret>rseInt("")
|
||||
void foo() {int i = Integer.parseInt("");}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
class Test {
|
||||
int i = Integer.parseInt("");
|
||||
Integer.pa<caret>rseInt("")
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
<selection>new Integer(0)</selection>
|
||||
|
||||
void foo() {
|
||||
Integer i = new Integer(0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
class Test {
|
||||
Integer.pa<caret>rseInt("")
|
||||
}
|
||||
Reference in New Issue
Block a user