mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-28 14:54:36 +07:00
GitOrigin-RevId: e23d7f5c92ef60950db26adc9db91a9dfa95e347
14 lines
392 B
Java
14 lines
392 B
Java
class Test {
|
|
Runnable r = () -> {
|
|
int i = <warning descr="Variable 'i' initializer '0' is redundant">0</warning>;
|
|
i = 1;
|
|
System.out.println(i);
|
|
};
|
|
java.util.function.IntSupplier is = () -> switch (1) {
|
|
default -> {
|
|
String s;
|
|
System.out.println(<warning descr="The value '\"hi\"' assigned to 's' is never used">s</warning> = "hi");
|
|
yield 1;
|
|
}
|
|
};
|
|
} |