java.lang.annotation.Inherited

Indicates that the annotation type should automatically be inherited so that the subclass type appears to have this annotation when it is requested. That is, if an annotation with this annotation is requested it will keep going up the superclasses until it is found. This only affects classes which use an annotation with this annotation, as such interfaces are excluded.