Allow resource variables in-place rename; Java in-place rename tests updated

This commit is contained in:
Roman Shevchenko
2011-03-01 11:41:42 +01:00
parent beab19875d
commit 8f62093a5c
11 changed files with 70 additions and 43 deletions

View File

@@ -1,7 +1,7 @@
public class Test {
int myI;
void foo(int i){
myI = i;
void foo(int pp){
myI = pp;
}
}

View File

@@ -1,7 +1,7 @@
public class Test {
int myI;
void foo(int i){
myI = i;
void foo(int pp){
myI = pp;
}
}

View File

@@ -1,6 +1,6 @@
class Test {
int myI;
void foo(int i){
myI = i;
void foo(int myI){
this.myI = myI;
}
}

View File

@@ -0,0 +1,7 @@
public class Test {
void m() throws Exception {
try (AutoCloseable <caret>r = null; AutoCloseable r2 = r) {
System.out.println(r + ", " + r2);
}
}
}

View File

@@ -0,0 +1,7 @@
public class Test {
void m() throws Exception {
try (AutoCloseable <caret>r = null; AutoCloseable r2 = r) {
System.out.println(r + ", " + r2);
}
}
}

View File

@@ -0,0 +1,7 @@
public class Test {
void m() throws Exception {
try (AutoCloseable r1 = null; AutoCloseable r2 = r1) {
System.out.println(r1 + ", " + r2);
}
}
}

View File

@@ -0,0 +1,7 @@
public class Test {
void m() throws Exception {
try (AutoCloseable r1 = null; AutoCloseable r2 = r1) {
System.out.println(r1 + ", " + r2);
}
}
}