mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-17 20:11:25 +07:00
testdata for IDEA-121999
(cherry picked from commit 85f88420716c2bb2e0a73d524a33656a5699cf9f)
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user