mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
correct field/getters naming in extract method object (EA-26268 - assert: ExtractMethodObjectProcessor.b)
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
void ft() {
|
||||
<selection>String _result = "";
|
||||
_result +="s";
|
||||
int k = 0;</selection>
|
||||
System.out.println(_result + k);
|
||||
}
|
||||
}
|
||||
+28
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user