mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
15 lines
312 B
Java
15 lines
312 B
Java
// "Replace with lambda" "true-preview"
|
|
|
|
import java.util.function.Consumer;
|
|
|
|
class A {
|
|
void anonymousToLambda(String s) {
|
|
String s2 = "";
|
|
Consumer<String> consumer = new Consu<caret>mer<String>() {
|
|
@Override
|
|
public void accept(final String s) {
|
|
String s1 = "";
|
|
}
|
|
};
|
|
}
|
|
} |