You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2008/12/14 01:31:25 UTC
svn commit: r726317 -
/xerces/java/trunk/src/org/apache/xerces/impl/xs/util/XSNamedMapImpl.java
Author: mrglavas
Date: Sat Dec 13 16:31:24 2008
New Revision: 726317
URL: http://svn.apache.org/viewvc?rev=726317&view=rev
Log:
Removing an unused field and marking a few others final.
Modified:
xerces/java/trunk/src/org/apache/xerces/impl/xs/util/XSNamedMapImpl.java
Modified: xerces/java/trunk/src/org/apache/xerces/impl/xs/util/XSNamedMapImpl.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xs/util/XSNamedMapImpl.java?rev=726317&r1=726316&r2=726317&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xs/util/XSNamedMapImpl.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xs/util/XSNamedMapImpl.java Sat Dec 13 16:31:24 2008
@@ -18,7 +18,6 @@
package org.apache.xerces.impl.xs.util;
import org.apache.xerces.util.SymbolHash;
-import org.apache.xerces.xni.QName;
import org.apache.xerces.xs.XSNamedMap;
import org.apache.xerces.xs.XSObject;
@@ -49,19 +48,17 @@
};
// components of these namespaces are stored in this map
- String[] fNamespaces;
+ final String[] fNamespaces;
// number of namespaces
- int fNSNum;
+ final int fNSNum;
// each entry contains components in one namespace
- SymbolHash[] fMaps;
+ final SymbolHash[] fMaps;
// store all components from all namespace.
// used when this map is accessed as a list.
- XSObject[] fArray = null;
+ XSObject[] fArray = null;
// store the number of componetns.
// used when this map is accessed as a list.
- int fLength = -1;
- // temprory QName object
- QName fName = new QName();
+ int fLength = -1;
/**
* Construct an XSNamedMap implmentation for one namespace
@@ -96,7 +93,9 @@
*/
public XSNamedMapImpl(XSObject[] array, int length) {
if (length == 0) {
+ fNamespaces = null;
fNSNum = 0;
+ fMaps = null;
fLength = 0;
return;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org