mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 20:39:40 +07:00
instance method move: do not introduce additional params for base class of containing anonymous
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
public class Test {
|
||||
|
||||
public boolean per<caret>form(Bar l) {
|
||||
final Dialog dialog = new Dialog() {
|
||||
protected void invokeRefactoring() {
|
||||
doRefactor();
|
||||
}
|
||||
|
||||
};
|
||||
dialog.show();
|
||||
return dialog.isOK();
|
||||
}
|
||||
}
|
||||
|
||||
class Bar {
|
||||
}
|
||||
|
||||
class ID {
|
||||
void doRefactor() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class Dialog extends ID {
|
||||
public void show() {
|
||||
}
|
||||
|
||||
public boolean isOK() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
public class Test {
|
||||
|
||||
}
|
||||
|
||||
class Bar {
|
||||
public boolean perform() {
|
||||
final Dialog dialog = new Dialog() {
|
||||
protected void invokeRefactoring() {
|
||||
doRefactor();
|
||||
}
|
||||
|
||||
};
|
||||
dialog.show();
|
||||
return dialog.isOK();
|
||||
}
|
||||
}
|
||||
|
||||
class ID {
|
||||
void doRefactor() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class Dialog extends ID {
|
||||
public void show() {
|
||||
}
|
||||
|
||||
public boolean isOK() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user