mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 10:20:15 +07:00
more java tests moved to community
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// "Create Local Variable 'x'" "true"
|
||||
class other {
|
||||
public int method1() { return 1;}
|
||||
public String field1;
|
||||
}
|
||||
class A {
|
||||
public void foo() {
|
||||
other x<caret>;
|
||||
x.method1();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// "Create Local Variable 'x'" "true"
|
||||
class other {
|
||||
public int method1() { return 1;}
|
||||
public String field1;
|
||||
}
|
||||
class A {
|
||||
public void foo() {
|
||||
other x<caret>;
|
||||
int i = x.field1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Create Local Variable 'a'" "true"
|
||||
class C {
|
||||
void foo() {
|
||||
int a<caret> = 10;
|
||||
a++;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Create Local Variable 't'" "true"
|
||||
class Test {
|
||||
private void f() {
|
||||
int t<caret>;
|
||||
int i = t;
|
||||
t = 0;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Create Local Variable 'local'" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
String local<caret>;
|
||||
System.out.println(local);
|
||||
{
|
||||
local = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Create Local Variable 'x'" "true"
|
||||
class other {
|
||||
public int method1() { return 1;}
|
||||
public String field1;
|
||||
}
|
||||
class A {
|
||||
public void foo() {
|
||||
<caret>x.method1();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Create Local Variable 'x'" "true"
|
||||
class other {
|
||||
public int method1() { return 1;}
|
||||
public String field1;
|
||||
}
|
||||
class A {
|
||||
public void foo() {
|
||||
int i = <caret>x.field1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Create Local Variable 'a'" "true"
|
||||
class C {
|
||||
void foo() {
|
||||
<caret>a = 10;
|
||||
a++;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Create Local Variable 't'" "true"
|
||||
class Test {
|
||||
private void f() {
|
||||
int i = <caret>t;
|
||||
t = 0;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Create Local Variable 'local'" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
System.out.println(local);
|
||||
{
|
||||
<caret>local = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user