extract method: duplicates processing fixed (IDEA-105562)

This commit is contained in:
anna
2013-04-17 15:58:52 +02:00
parent 0e18b63ca3
commit ceb9354f15
4 changed files with 29 additions and 1 deletions
@@ -0,0 +1,10 @@
class Test {
String[] foos;
void test() {
for (String foo : <selection>foos</selection>) {
}
System.out.println(foos.length);
}
}
@@ -0,0 +1,14 @@
class Test {
String[] foos;
void test() {
for (String foo : newMethod()) {
}
System.out.println(newMethod().length);
}
private String[] newMethod() {
return foos;
}
}