You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by kn...@apache.org on 2009/11/23 21:46:02 UTC
svn commit: r883496 -
/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/validation/ValidationManager.java
Author: knoaman
Date: Mon Nov 23 20:46:00 2009
New Revision: 883496
URL: http://svn.apache.org/viewvc?rev=883496&view=rev
Log:
Use ArrayList of Vector - Keep 1.1 branch up to date with Xerces-J trunk
Modified:
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/validation/ValidationManager.java
Modified: xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/validation/ValidationManager.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/validation/ValidationManager.java?rev=883496&r1=883495&r2=883496&view=diff
==============================================================================
--- xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/validation/ValidationManager.java (original)
+++ xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/validation/ValidationManager.java Mon Nov 23 20:46:00 2009
@@ -17,7 +17,7 @@
package org.apache.xerces.impl.validation;
-import java.util.Vector;
+import java.util.ArrayList;
/**
* ValidationManager is a coordinator property for validators in the
@@ -33,7 +33,7 @@
*/
public class ValidationManager {
- protected final Vector fVSs = new Vector();
+ protected final ArrayList fVSs = new ArrayList();
protected boolean fGrammarFound = false;
// used by the DTD validator to tell other components that it has a
@@ -46,7 +46,7 @@
* the validation manager.
*/
public final void addValidationState(ValidationState vs) {
- fVSs.addElement(vs);
+ fVSs.add(vs);
}
/**
@@ -54,7 +54,7 @@
*/
public final void setEntityState(EntityState state) {
for (int i = fVSs.size()-1; i >= 0; i--) {
- ((ValidationState)fVSs.elementAt(i)).setEntityState(state);
+ ((ValidationState)fVSs.get(i)).setEntityState(state);
}
}
@@ -75,8 +75,8 @@
} // isCachedDTD(): boolean
- public final void reset (){
- fVSs.removeAllElements();
+ public final void reset () {
+ fVSs.clear();
fGrammarFound = false;
fCachedDTD = false;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org