Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/newMethodRef/EnumValuesMethod.java

25 lines
368 B
Java

import java.util.function.Supplier;
class EnumValues {
{
Supplier<I<ABC>> supplier = () -> new C<>(ABC::values);
}
private static interface I<T> {
T get();
}
private static class C<E> implements I<E> {
C(Supplier<E[]> supplier) {}
@Override
public E get() {
return null;
}
}
private static enum ABC {
A, B, C
}
}