preserve comments while converting from lambda to method ref (IDEA-156734)

This commit is contained in:
Anna Kozlova
2016-05-30 20:16:19 +03:00
parent 75da057639
commit 86aa72abe4
3 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
// "Replace lambda with method reference" "true"
class Example {
public void m() {
}
{
//my comments here
Runnable r = this::m
}
}

View File

@@ -0,0 +1,12 @@
// "Replace lambda with method reference" "true"
class Example {
public void m() {
}
{
Runnable r = () -> {
//my comments here
m<caret>();
}
}
}