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 2001/10/03 20:30:53 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/impl/v2 XSDFACM.java
neilg 01/10/03 11:30:53
Modified: java/src/org/apache/xerces/impl/v2 XSDFACM.java
Log:
some optimizations from Henry Zongaro
Revision Changes Path
1.3 +5 -3 xml-xerces/java/src/org/apache/xerces/impl/v2/XSDFACM.java
Index: XSDFACM.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/v2/XSDFACM.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- XSDFACM.java 2001/10/02 16:07:47 1.2
+++ XSDFACM.java 2001/10/03 18:30:53 1.3
@@ -69,7 +69,7 @@
* it then uses in its validation algorithm.
*
* @author Neil Graham, IBM
- * @version $Id: XSDFACM.java,v 1.2 2001/10/02 16:07:47 neilg Exp $
+ * @version $Id: XSDFACM.java,v 1.3 2001/10/03 18:30:53 neilg Exp $
*/
public class XSDFACM
implements XSCMValidator {
@@ -405,7 +405,7 @@
// This method returns the start states of the content model.
public int[] startContentModel() {
- int[] val = new int[fElemMapSize];
+ int[] val = new int[1];
val[0]=0;
return val;
} // startContentModel():int[]
@@ -585,7 +585,9 @@
fElemMapType = new int[fLeafCount];
fElemMapSize = 0;
for (int outIndex = 0; outIndex < fLeafCount; outIndex++) {
- fElemMap[outIndex] = new Object ();
+ // optimization from Henry Zongaro:
+ //fElemMap[outIndex] = new Object ();
+ fElemMap[outIndex] = null;
/****
This code commented out in the DTD version...
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org