mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
lambda -> method ref: reuse comment tracker (IDEA-189934)
This commit is contained in:
+2
@@ -5,6 +5,8 @@ class Example {
|
||||
|
||||
{
|
||||
//my comments here
|
||||
//1
|
||||
//2
|
||||
Runnable r = this::m
|
||||
}
|
||||
}
|
||||
+4
-1
@@ -6,7 +6,10 @@ class Example {
|
||||
{
|
||||
Runnable r = () -> {
|
||||
//my comments here
|
||||
m<caret>();
|
||||
m<caret>()
|
||||
//1
|
||||
//2
|
||||
;
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
-1
@@ -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*/
|
||||
|
||||
Reference in New Issue
Block a user