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/09/29 06:29:04 UTC

svn commit: r699985 - in /xerces/java/trunk/src/org/apache/xerces/parsers: AbstractDOMParser.java XML11Configuration.java XMLGrammarPreparser.java XMLParser.java

Author: mrglavas
Date: Sun Sep 28 21:29:03 2008
New Revision: 699985

URL: http://svn.apache.org/viewvc?rev=699985&view=rev
Log:
Marking many fields final.

Modified:
    xerces/java/trunk/src/org/apache/xerces/parsers/AbstractDOMParser.java
    xerces/java/trunk/src/org/apache/xerces/parsers/XML11Configuration.java
    xerces/java/trunk/src/org/apache/xerces/parsers/XMLGrammarPreparser.java
    xerces/java/trunk/src/org/apache/xerces/parsers/XMLParser.java

Modified: xerces/java/trunk/src/org/apache/xerces/parsers/AbstractDOMParser.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/parsers/AbstractDOMParser.java?rev=699985&r1=699984&r2=699985&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/parsers/AbstractDOMParser.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/parsers/AbstractDOMParser.java Sun Sep 28 21:29:03 2008
@@ -258,7 +258,7 @@
     // data
 
     /** Base uri stack*/
-    protected Stack fBaseURIStack = new Stack ();
+    protected final Stack fBaseURIStack = new Stack ();
 
     /** LSParserFilter: the QNAME of rejected element*/
     protected final QName fRejectedElement = new QName ();

Modified: xerces/java/trunk/src/org/apache/xerces/parsers/XML11Configuration.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/parsers/XML11Configuration.java?rev=699985&r1=699984&r2=699985&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/parsers/XML11Configuration.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/parsers/XML11Configuration.java Sun Sep 28 21:29:03 2008
@@ -49,7 +49,6 @@
 import org.apache.xerces.xni.XMLDTDContentModelHandler;
 import org.apache.xerces.xni.XMLDTDHandler;
 import org.apache.xerces.xni.XMLDocumentHandler;
-import org.apache.xerces.xni.XMLLocator;
 import org.apache.xerces.xni.XNIException;
 import org.apache.xerces.xni.grammars.XMLGrammarPool;
 import org.apache.xerces.xni.parser.XMLComponent;
@@ -283,19 +282,18 @@
 
 	protected SymbolTable fSymbolTable;
     protected XMLInputSource fInputSource;
-    protected ValidationManager fValidationManager;
-	protected XMLVersionDetector fVersionDetector;
-    protected XMLLocator fLocator;
+    protected final ValidationManager fValidationManager;
+	protected final XMLVersionDetector fVersionDetector;
 	protected Locale fLocale;
 
 	/** XML 1.0 Components. */
-	protected ArrayList fComponents;
+	protected final ArrayList fComponents;
     
 	/** XML 1.1. Components. */
-	protected ArrayList fXML11Components = null;
+	protected final ArrayList fXML11Components;
 	
 	/** Common components: XMLEntityManager, XMLErrorReporter, XMLSchemaValidator */
-	protected ArrayList fCommonComponents = null;
+	protected final ArrayList fCommonComponents;
 
 	/** The document handler. */
 	protected XMLDocumentHandler fDocumentHandler;
@@ -326,20 +324,25 @@
     //
 
     /** The XML 1.0 Datatype validator factory. */
-    protected DTDDVFactory fDatatypeValidatorFactory;
+    protected final DTDDVFactory fDatatypeValidatorFactory;
 
     /** The XML 1.0 Document scanner that does namespace binding. */
-    protected XMLNSDocumentScannerImpl fNamespaceScanner;
+    protected final XMLNSDocumentScannerImpl fNamespaceScanner;
+    
     /** The XML 1.0 Non-namespace implementation of scanner */
     protected XMLDocumentScannerImpl fNonNSScanner;
+    
     /** The XML 1.0 DTD Validator: binds namespaces */
-    protected XMLDTDValidator fDTDValidator;
+    protected final XMLDTDValidator fDTDValidator;
+    
     /** The XML 1.0 DTD Validator that does not bind namespaces */
     protected XMLDTDValidator fNonNSDTDValidator;
+    
     /** The XML 1.0 DTD scanner. */
-    protected XMLDTDScanner fDTDScanner;
+    protected final XMLDTDScanner fDTDScanner;
+    
     /** The XML 1.0 DTD Processor . */
-    protected XMLDTDProcessor fDTDProcessor;
+    protected final XMLDTDProcessor fDTDProcessor;
 
     //
     // XML 1.1 components
@@ -362,6 +365,7 @@
 
     /** The XML 1.1 DTD scanner. **/
     protected XML11DTDScannerImpl fXML11DTDScanner = null;
+    
     /** The XML 1.1 DTD processor. **/
     protected XML11DTDProcessor fXML11DTDProcessor = null;
 

Modified: xerces/java/trunk/src/org/apache/xerces/parsers/XMLGrammarPreparser.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/parsers/XMLGrammarPreparser.java?rev=699985&r1=699984&r2=699985&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/parsers/XMLGrammarPreparser.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/parsers/XMLGrammarPreparser.java Sun Sep 28 21:29:03 2008
@@ -97,15 +97,15 @@
     };
 
     // Data
-    protected SymbolTable fSymbolTable;
-    protected XMLErrorReporter fErrorReporter;
+    protected final SymbolTable fSymbolTable;
+    protected final XMLErrorReporter fErrorReporter;
     protected XMLEntityResolver fEntityResolver;
     protected XMLGrammarPool fGrammarPool;
 
     protected Locale fLocale;
 
     // Hashtable holding our loaders
-    private Hashtable fLoaders;
+    private final Hashtable fLoaders;
     
     // The number of times the configuration has been modified.
     private int fModCount = 1;

Modified: xerces/java/trunk/src/org/apache/xerces/parsers/XMLParser.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/parsers/XMLParser.java?rev=699985&r1=699984&r2=699985&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/parsers/XMLParser.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/parsers/XMLParser.java Sun Sep 28 21:29:03 2008
@@ -70,7 +70,7 @@
     //
 
     /** The parser configuration. */
-    protected XMLParserConfiguration fConfiguration;
+    protected final XMLParserConfiguration fConfiguration;
 
     //
     // Constructors



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