Author: mrglavas
Date: Sat Feb 20 17:18:22 2010
New Revision: 912153

URL: http://svn.apache.org/viewvc?rev=912153&view=rev
Log:
Use the constant for maxOccurs="unbounded". If the value changes in the future 
we won't have to update this code.

Modified:
    
xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDAbstractTraverser.java

Modified: 
xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDAbstractTraverser.java
URL: 
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDAbstractTraverser.java?rev=912153&r1=912152&r2=912153&view=diff
==============================================================================
--- 
xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDAbstractTraverser.java
 (original)
+++ 
xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDAbstractTraverser.java
 Sat Feb 20 17:18:22 2010
@@ -777,7 +777,7 @@
         if (processingAllEl) {
             if (max != 1) {
                 reportSchemaError("cos-all-limited.2", new Object[]{
-                        (max == -1) ? SchemaSymbols.ATTVAL_UNBOUNDED : 
Integer.toString(max),
+                        (max == SchemaSymbols.OCCURRENCE_UNBOUNDED) ? 
SchemaSymbols.ATTVAL_UNBOUNDED : Integer.toString(max),
                         ((XSElementDecl)particle.fValue).getName()}, parent);
                 max = 1;
                 if (min > 1)



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to