mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
extract method: include method prams when extracting from lambda body (IDEA-142163)
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
class Test {
|
||||
void foo(Object o) {
|
||||
try {
|
||||
Runnable r = () -> {
|
||||
<selection>System.out.println(o);</selection>
|
||||
};
|
||||
} catch (Throwable e) {}
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
class Test {
|
||||
void foo(Object o) {
|
||||
try {
|
||||
Runnable r = () -> {
|
||||
newMethod(o);
|
||||
};
|
||||
} catch (Throwable e) {}
|
||||
}
|
||||
|
||||
private void newMethod(Object o) {
|
||||
System.out.println(o);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user