mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
introduce parameter: replace field access with getter: correct anonymous class access; check qualifier
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
public class Test {
|
||||
private String myStr;
|
||||
|
||||
public String getMyStr() {
|
||||
return myStr;
|
||||
}
|
||||
|
||||
void foo() {
|
||||
new Runnable(){
|
||||
@Override
|
||||
public void run() {
|
||||
System.out.println(<selection>myStr</selection>);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
class X {
|
||||
public void n() {
|
||||
new Test().foo();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user