You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlbeans.apache.org by pc...@apache.org on 2004/05/31 21:50:50 UTC
cvs commit: xml-xmlbeans/v2/jam/src/org/apache/xmlbeans/impl/jam/internal/elements AnnotatedElementImpl.java
pcal 2004/05/31 12:50:50
Modified: v2/jam/src/org/apache/xmlbeans/impl/jam/internal/elements
AnnotatedElementImpl.java
Log:
fix small bug in new javadoc tag parsing
Revision Changes Path
1.19 +6 -0 xml-xmlbeans/v2/jam/src/org/apache/xmlbeans/impl/jam/internal/elements/AnnotatedElementImpl.java
Index: AnnotatedElementImpl.java
===================================================================
RCS file: /home/cvs/xml-xmlbeans/v2/jam/src/org/apache/xmlbeans/impl/jam/internal/elements/AnnotatedElementImpl.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- AnnotatedElementImpl.java 30 May 2004 04:35:25 -0000 1.18
+++ AnnotatedElementImpl.java 31 May 2004 19:50:50 -0000 1.19
@@ -151,6 +151,12 @@
MAnnotation ann = new AnnotationImpl(getContext(),proxy,annName);
if (mAllAnnotations == null) mAllAnnotations = new ArrayList();
mAllAnnotations.add(ann);
+
+ // if one doesn't exist yet, then create the first one
+ if (getMutableAnnotation(annName) == null) {
+ if (mName2Annotation == null) mName2Annotation = new HashMap();
+ mName2Annotation.put(ann.getSimpleName(),ann);
+ }
return ann;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-cvs-help@xml.apache.org