This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
(See bug #149538) I might make sense to introduce a way to set many annotations at once, removing all previously set annotations (with the same key). Something like: void setAnnotations(String key, Collection<Annotation> annotations); Not only this might be easier for some clients, but it could also be made faster than removing/adding the annotations one-by-one. See also: http://hg.netbeans.org/jet-main/file/5e405162ea26/java.editor/src/org/netbeans/modules/java/editor/overridden/AnnotationsHolder.java