mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-21 21:50:54 +07:00
array creation can't be used as expression statement thus corresponding lambda body is value compatible but not void compatible GitOrigin-RevId: b0ddccad13c8699de64c4ce3e584214fe08a2353
14 lines
233 B
Java
14 lines
233 B
Java
interface A {
|
|
void enableInspections(B... providers);
|
|
void enableInspections(Runnable r, String... inspections);
|
|
}
|
|
|
|
interface B {
|
|
Class[] get();
|
|
}
|
|
|
|
class C {
|
|
void foo(A a) {
|
|
a.enableInspections(() -> new Class[]{});
|
|
}
|
|
} |