Annotation Interface InheritedAnnotation


@Documented @Retention(RUNTIME) @Target(ANNOTATION_TYPE) public @interface InheritedAnnotation
A meta-annotation that specifies that a declaration annotation should be inherited. This should not be written on type annotations. Unlike Inherited, this meta-annotation causes the declaration annotation to be inherited even if it is used to annotate something other than a class.

If an annotation type is meta-annotation with Inherited, that annotation will only be inherited when written on a class.