correct field/getters naming in extract method object (EA-26268 - assert: ExtractMethodObjectProcessor.b)

This commit is contained in:
anna
2011-04-15 20:24:51 +02:00
parent c5bfe74da9
commit b4a99e051b
4 changed files with 52 additions and 6 deletions
@@ -0,0 +1,8 @@
class Test {
void ft() {
<selection>String _result = "";
_result +="s";
int k = 0;</selection>
System.out.println(_result + k);
}
}
@@ -0,0 +1,28 @@
class Test {
void ft() {
Inner inner = new Inner().invoke();
String _result = inner.getResult();
int k = inner.getK();
System.out.println(_result + k);
}
private class Inner {
private String result;
private int k;
public String getResult() {
return result;
}
public int getK() {
return k;
}
public Inner invoke() {
result = "";
result +="s";
k = 0;
return this;
}
}
}