mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 14:50:53 +07:00
16 lines
275 B
Java
16 lines
275 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 A();
|
|
});
|
|
}
|
|
} |