mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
PsiJavaCodeReferenceElementImpl: preserve tokens (comments/whitespace) between name element and parameter list
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
// "Replace with forEach" "true"
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class Test {
|
||||
void test(Collection<String> obj) {
|
||||
obj.forEach(str -> {
|
||||
List// declaration
|
||||
<String> s2 = Collections.singleton(str);
|
||||
System.out.println(str + s2);
|
||||
});
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// "Replace with forEach" "true"
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class Test {
|
||||
void test(Collection<String> obj) {
|
||||
for(String str : <caret>obj) {
|
||||
List// declaration
|
||||
<String> s2 = Collections.singleton(str);
|
||||
System.out.println(str+s2);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user