mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 18:58:31 +07:00
FunctionHelper#registerReusedElements: pass qualifier only
Because ::xyz part is not actually reused, comments from there are not preserved.
This commit is contained in:
@@ -6,9 +6,11 @@ import java.util.Objects;
|
||||
|
||||
public class Main {
|
||||
private static void test(List<String> names) {
|
||||
/*3*/
|
||||
/*4*/
|
||||
for (String name : names) {
|
||||
if (name != null) {
|
||||
System.out.println(name);
|
||||
System/*1*/./*2*/out.println(name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ import java.util.Objects;
|
||||
|
||||
public class Main {
|
||||
private static void test(List<String> names) {
|
||||
names.stream().filter(Objects::nonNull).fo<caret>rEach(System.out::println);
|
||||
names.stream().filter(Objects::nonNull).fo<caret>rEach(System/*1*/./*2*/out/*3*/::/*4*/println);
|
||||
}
|
||||
|
||||
private static String getString() {
|
||||
|
||||
Reference in New Issue
Block a user