Try this
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface SomeInterface {
Class bar() default void.class;
}
It does not require a new class and it is already a keyword in Java that means nothing.
Try this
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface SomeInterface {
Class bar() default void.class;
}
It does not require a new class and it is already a keyword in Java that means nothing.