Author: mrglavas
Date: Sun Sep  2 12:11:51 2007
New Revision: 572112

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

Modified:
    xerces/java/trunk/src/org/apache/xerces/impl/xs/models/CMBuilder.java
    xerces/java/trunk/src/org/apache/xerces/impl/xs/models/XSAllCM.java
    xerces/java/trunk/src/org/apache/xerces/impl/xs/models/XSCMLeaf.java
    xerces/java/trunk/src/org/apache/xerces/impl/xs/models/XSEmptyCM.java

Modified: xerces/java/trunk/src/org/apache/xerces/impl/xs/models/CMBuilder.java
URL: 
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xs/models/CMBuilder.java?rev=572112&r1=572111&r2=572112&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xs/models/CMBuilder.java 
(original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xs/models/CMBuilder.java Sun 
Sep  2 12:11:51 2007
@@ -41,14 +41,14 @@
     private XSDeclarationPool fDeclPool = null;
 
     // It never changes, so a static member is good enough
-    private static XSEmptyCM fEmptyCM = new XSEmptyCM();
+    private static final XSEmptyCM fEmptyCM = new XSEmptyCM();
 
     // needed for DFA construction
     private int fLeafCount;
     // needed for UPA
     private int fParticleCount;
     //Factory to create Bin, Uni, Leaf nodes
-    private CMNodeFactory fNodeFactory ;
+    private final CMNodeFactory fNodeFactory;
 
     public CMBuilder(CMNodeFactory nodeFactory) {
         fDeclPool = null;

Modified: xerces/java/trunk/src/org/apache/xerces/impl/xs/models/XSAllCM.java
URL: 
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xs/models/XSAllCM.java?rev=572112&r1=572111&r2=572112&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xs/models/XSAllCM.java 
(original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xs/models/XSAllCM.java Sun Sep 
 2 12:11:51 2007
@@ -49,9 +49,9 @@
     // Data
     //
 
-    private XSElementDecl fAllElements[];
-    private boolean fIsOptionalElement[];
-    private boolean fHasOptionalContent = false;
+    private final XSElementDecl fAllElements[];
+    private final boolean fIsOptionalElement[];
+    private final boolean fHasOptionalContent;
     private int fNumElements = 0;
 
     //

Modified: xerces/java/trunk/src/org/apache/xerces/impl/xs/models/XSCMLeaf.java
URL: 
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xs/models/XSCMLeaf.java?rev=572112&r1=572111&r2=572112&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xs/models/XSCMLeaf.java 
(original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xs/models/XSCMLeaf.java Sun 
Sep  2 12:11:51 2007
@@ -36,7 +36,7 @@
     //
 
     /** This is the leaf: element decl or wildcard decl. */
-    private Object fLeaf = null;
+    private final Object fLeaf;
     
     /**
      * Identify the particle: for UPA checking

Modified: xerces/java/trunk/src/org/apache/xerces/impl/xs/models/XSEmptyCM.java
URL: 
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xs/models/XSEmptyCM.java?rev=572112&r1=572111&r2=572112&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xs/models/XSEmptyCM.java 
(original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xs/models/XSEmptyCM.java Sun 
Sep  2 12:11:51 2007
@@ -25,14 +25,14 @@
 
 /**
  * XSEmptyCM is a derivative of the abstract content model base class that
- * handles a content model with no chilren (elements).
+ * handles a content model with no children (elements).
  *
  * This model validated on the way in.
  *
  * @xerces.internal 
  *
- * @author Elena Litani, Lisa Martin
- * @author IBM
+ * @author Elena Litani, IBM
+ * @author Lisa Martin, IBM
  * @version $Id$
  */
 public class XSEmptyCM  implements XSCMValidator {



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to