Пример #1
0
 public boolean addAnnotationIfNew(OJAnnotationValue value) {
   if (f_annotations.containsKey(value.getType())) {
     return false;
   } else {
     putAnnotation(value);
     return true;
   }
 }
Пример #2
0
 public OJAnnotationValue putAnnotation(OJAnnotationValue value) {
   return f_annotations.put(value.getType(), value);
 }