Itâ€™s possible to add a â€œremoveAnnotatation()â€� method to the JAnnotatable interface?
This wouldnâ€™t be that hard, because all classes that implement the
JAnnotatable interface (JDefinedClass, JEnumConstant, JMethod, JPackage, Jvar,
...) implement the annotations as an List like:
private List<JAnnotationUse> annotations = null;
All JAXB plugin developers would profit from this improvement!
(This can be handy, if JAXB annotated a JVar with an annotation, but a plugin
developer does something mysterious with this JVar, so new annotations are
needed (no problem with the current design) and other annotations have to go
(quite hard to do with the current design)