mrglavas    2005/05/24 13:31:04

  Modified:    java/src/org/apache/xerces/impl/xs XMLSchemaValidator.java
  Log:
  In clear(), clear all of the vectors.
  
  Revision  Changes    Path
  1.169     +5 -2      
xml-xerces/java/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
  
  Index: XMLSchemaValidator.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java,v
  retrieving revision 1.168
  retrieving revision 1.169
  diff -u -r1.168 -r1.169
  --- XMLSchemaValidator.java   24 May 2005 19:38:18 -0000      1.168
  +++ XMLSchemaValidator.java   24 May 2005 20:31:04 -0000      1.169
  @@ -3301,6 +3301,8 @@
           public void clear() {
               fValuesCount = 0;
               fValues.setSize(0);
  +            fValueTypes.clear();
  +            fItemValueTypes.setSize(0);
           } // end clear():void
   
           // appends the contents of one ValueStore to those of us.
  @@ -3484,8 +3486,9 @@
                       }
                       else if(val == XSConstants.LIST_DT || val == 
XSConstants.LISTOFUNION_DT) {
                           ShortList list1 = 
(ShortList)itemValueTypes.elementAt(i);
  -                        if(!fItemValueTypes.contains(list1))
  +                        if (!fItemValueTypes.contains(list1)) {
                               return i;
  +                        }
                       }
                   }
               }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to