Meta annotation used to replace the implementation of an external
annotation of the same name.
For example, to validate the java.lang.Override annotation (for which
we do not have the source code), it suffices to create a (dummy) annotation called
Override in any package, and meta annotate it with this annotation. The code
of the dummy would be:
@ReplacesAnnotationInPackage("java.lang")
public @interface Overrides {
}
|