I know that it is not possible to extend Java annotations .
I created an annotation for a private field, which means that the field will most likely not be used in the class in which it is declared. For this reason, I receive many warnings about an unused field in my annotated fields.
Is there a way to give my annotation the behavior of @SuppressWarnings("unused") , so I donβt need to double the annotation of each field that has @MyAnnotation ?
java annotations suppress-warnings
Armand
source share