mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 17:07:05 +07:00
anonymous -> lambda: deep unique names (IDEA-154751)
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// "Replace with lambda" "true"
|
||||
|
||||
import java.util.function.Consumer;
|
||||
|
||||
class A {
|
||||
void anonymousToLambda(String s) {
|
||||
String s12 = "";
|
||||
Consumer<String> consumer = s13 -> {
|
||||
String s1 = "";
|
||||
};
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// "Replace with lambda" "true"
|
||||
|
||||
import java.util.function.Consumer;
|
||||
|
||||
class A {
|
||||
void anonymousToLambda(String s) {
|
||||
String s12 = "";
|
||||
Consumer<String> consumer = new Consu<caret>mer<String>() {
|
||||
@Override
|
||||
public void accept(final String s) {
|
||||
String s1 = "";
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user