コード例 #1
0
 /**
  * Adds the specified annotation to this container.
  *
  * @param annotation the annotation to add
  */
 public final void addAnnotation(final FileAnnotation annotation) {
   annotations.put(annotation.getKey(), annotation);
   updateMappings(annotation);
 }
コード例 #2
0
 /** Rebuilds the priorities and files after deserialization. */
 protected void rebuildMappings() {
   initialize();
   for (FileAnnotation annotation : getAnnotations()) {
     updateMappings(annotation);
   }
 }