@Target is an annotation that applies to other annotations. Annotations that apply to other annotations are called meta-annotations. There are several meta-annotation types defined in java.lang.annotation.
@Target annotation marks another annotation to restrict what kind of Java elements the annotation can be applied to.
A target annotation specifies one of the following element types as its value:
With JDK11 there are also:
We just sent you an email. Please click the link in the email to confirm your subscription!