mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
anonymous -> lambda: fix anonymous classes in enum constants
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
// "Replace with lambda" "true"
|
||||
enum E {
|
||||
A(() -> {});
|
||||
|
||||
public E(Runnable r) {}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Replace with lambda" "true"
|
||||
enum E {
|
||||
A(new Runna<caret>ble() {
|
||||
public void run(){}
|
||||
});
|
||||
|
||||
public E(Runnable r) {}
|
||||
}
|
||||
Reference in New Issue
Block a user