mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
extract method: enable duplicates inside inner classes called methods from outer (IDEA-143504)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import java.util.*;
|
||||
|
||||
class Main {
|
||||
|
||||
private final Map<Integer, Map<String, String>> myScheduledUpdates = null;
|
||||
|
||||
void foo() {
|
||||
new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
newMethod();
|
||||
}
|
||||
};
|
||||
newMethod();
|
||||
}
|
||||
|
||||
private Object[] newMethod() {
|
||||
return myScheduledUpdates.keySet().toArray(new Object[myScheduledUpdates.keySet().size()]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user