mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 03:51:12 +07:00
19 lines
343 B
Java
19 lines
343 B
Java
// "Replace with lambda" "true-preview"
|
|
import java.util.concurrent.Callable;
|
|
|
|
class A {
|
|
static void submit(Runnable r){}
|
|
|
|
static <T> T submit(Callable<T> c){
|
|
return null;
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
submit(new Run<caret>nable() {
|
|
@Override
|
|
public void run() {
|
|
new A();
|
|
}
|
|
});
|
|
}
|
|
} |