mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
[jvm-lang] update Java-to-Java Create Field from usage tests
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
||||
class Main {
|
||||
static void foo() {
|
||||
new Object() {
|
||||
public int field<caret>;
|
||||
private int field<caret>;
|
||||
|
||||
void bar() {
|
||||
this.field = 0;
|
||||
|
||||
+2
-2
@@ -1,10 +1,10 @@
|
||||
// "Create field 'FIELD'" "true"
|
||||
// "Create constant field 'FIELD'" "true"
|
||||
class C {
|
||||
public void foo() {
|
||||
int i = ITest.FIELD;
|
||||
}
|
||||
|
||||
public static interface ITest {
|
||||
int FIELD<caret>;
|
||||
int FIELD = <caret>;
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Create field 'FIELD'" "true"
|
||||
// "Create constant field 'FIELD'" "true"
|
||||
class C {
|
||||
public void foo() {
|
||||
int i = ITest.FIELD<caret>;
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Create field 'FIELD'" "false"
|
||||
class C {
|
||||
public void foo() {
|
||||
int i = ITest.FIELD<caret>;
|
||||
}
|
||||
|
||||
public static interface ITest {
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Create constant field 'bar' in 'I'" "false"
|
||||
interface I {}
|
||||
|
||||
interface II extends I {}
|
||||
|
||||
class Usage {
|
||||
void usage() {
|
||||
II.bar<caret>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user