mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-11 11:36:59 +07:00
14 lines
263 B
Java
14 lines
263 B
Java
// "Replace with lambda" "true"
|
|
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((Runnable) () -> new A());
|
|
}
|
|
} |