You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by sa...@apache.org on 2002/04/10 22:18:09 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/impl/xs XSComplexTypeDecl.java
sandygao 02/04/10 13:18:09
Modified: java/src/org/apache/xerces/impl/xs XSComplexTypeDecl.java
Log:
Synchronize on access to content models, to avoid thread-safety issues.
Revision Changes Path
1.8 +4 -5 xml-xerces/java/src/org/apache/xerces/impl/xs/XSComplexTypeDecl.java
Index: XSComplexTypeDecl.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/XSComplexTypeDecl.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- XSComplexTypeDecl.java 3 Apr 2002 23:48:26 -0000 1.7
+++ XSComplexTypeDecl.java 10 Apr 2002 20:18:09 -0000 1.8
@@ -67,7 +67,7 @@
*
* @author Elena Litani, IBM
* @author Sandy Gao, IBM
- * @version $Id: XSComplexTypeDecl.java,v 1.7 2002/04/03 23:48:26 elena Exp $
+ * @version $Id: XSComplexTypeDecl.java,v 1.8 2002/04/10 20:18:09 sandygao Exp $
*/
public class XSComplexTypeDecl implements XSTypeDecl {
@@ -161,10 +161,9 @@
fMiscFlags |= CT_IS_ANONYMOUS;
}
- public XSCMValidator getContentModel(CMBuilder cmBuilder) {
- if (fCMValidator != null)
- return fCMValidator;
- fCMValidator = cmBuilder.getContentModel(this);
+ public synchronized XSCMValidator getContentModel(CMBuilder cmBuilder) {
+ if (fCMValidator == null)
+ fCMValidator = cmBuilder.getContentModel(this);
return fCMValidator;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org