mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
extract method: reject containing classes when members were called through inheritance chain
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
public class Foo {
|
||||
public void update() {}
|
||||
}
|
||||
|
||||
class FooBar {
|
||||
{
|
||||
Foo tm = new Foo() {
|
||||
{
|
||||
newMethod();
|
||||
}
|
||||
|
||||
private void newMethod() {
|
||||
update();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user