You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ne...@apache.org on 2003/06/23 19:21:23 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/impl/xs/util XSObjectListImpl.java

neilg       2003/06/23 10:21:23

  Modified:    java/src/org/apache/xerces/impl/xs/util
                        XSObjectListImpl.java
  Log:
  add a method to reset an XSObjectList implementation
  
  Revision  Changes    Path
  1.4       +11 -3     xml-xerces/java/src/org/apache/xerces/impl/xs/util/XSObjectListImpl.java
  
  Index: XSObjectListImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/util/XSObjectListImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- XSObjectListImpl.java	14 Jan 2003 20:21:48 -0000	1.3
  +++ XSObjectListImpl.java	23 Jun 2003 17:21:23 -0000	1.4
  @@ -2,7 +2,7 @@
    * The Apache Software License, Version 1.1
    *
    *
  - * Copyright (c) 2002 The Apache Software Foundation.  All rights
  + * Copyright (c) 2002,2003 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -108,4 +108,12 @@
           return fArray[index];
       }
   
  -} // class XSParticle
  +    // reset this object
  +    public void reset() {
  +        for (int i=0; i<fLength; i++) {
  +            fArray[i] = null;
  +        }
  +        fArray = null;
  +    }
  +
  +} // class XSObjectList
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org