mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 09:20:53 +07:00
21 lines
542 B
Java
21 lines
542 B
Java
import java.util.function.Supplier;
|
|
|
|
class LambdaTest {
|
|
|
|
static {
|
|
int <warning descr="Variable 'i' is never used">i</warning> = doSync(() -> foo());
|
|
int <warning descr="Variable 'i1' is never used">i1</warning> = doSync(LambdaTest::foo);
|
|
}
|
|
|
|
public static <T> T doSync(Supplier<T> <warning descr="Parameter 'block' is never used">block</warning>) {
|
|
return null;
|
|
}
|
|
|
|
public static void doSync(Runnable <warning descr="Parameter 'block' is never used">block</warning>) {
|
|
}
|
|
|
|
public static int foo() {
|
|
return 0;
|
|
}
|
|
|
|
} |