extract method: include method prams when extracting from lambda body (IDEA-142163)

This commit is contained in:
Anna Kozlova
2015-07-02 17:13:33 +03:00
parent 0e0de35da8
commit 4684772197
4 changed files with 28 additions and 1 deletions
@@ -0,0 +1,9 @@
class Test {
void foo(Object o) {
try {
Runnable r = () -> {
<selection>System.out.println(o);</selection>
};
} catch (Throwable e) {}
}
}
@@ -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);
}
}