lambda -> method ref: reuse comment tracker (IDEA-189934)

This commit is contained in:
Anna.Kozlova
2019-02-04 15:21:43 +01:00
parent c33423601a
commit 1ace9ab2c3
5 changed files with 12 additions and 9 deletions
@@ -5,6 +5,8 @@ class Example {
{
//my comments here
//1
//2
Runnable r = this::m
}
}
@@ -6,7 +6,10 @@ class Example {
{
Runnable r = () -> {
//my comments here
m<caret>();
m<caret>()
//1
//2
;
}
}
}
@@ -4,7 +4,8 @@ import java.util.stream.Collectors;
public class Main {
public void test(List<Set<String>> nested) {
/*non-equal*//*empty*/
/*non-equal*/
/*empty*/
List<String> result = nested.stream().filter(Objects::nonNull).flatMap(Collection::stream).filter(str -> str./*startswith*/startsWith("xyz")).map(String::trim).collect(Collectors.toList());
// 1
/*target is here*/