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 2010/10/18 07:19:24 UTC

svn commit: r1023654 - /xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/alternative/Test.java

Author: mrglavas
Date: Mon Oct 18 05:19:24 2010
New Revision: 1023654

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

Modified:
    xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/alternative/Test.java

Modified: xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/alternative/Test.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/alternative/Test.java?rev=1023654&r1=1023653&r2=1023654&view=diff
==============================================================================
--- xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/alternative/Test.java (original)
+++ xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/alternative/Test.java Mon Oct 18 05:19:24 2010
@@ -47,18 +47,19 @@ public class Test extends AbstractPsycho
     protected final XSTypeAlternativeImpl fTypeAlternative;
 
     /** XPath 2.0 expression. Xerces-J native XPath 2.0 subset. */
-    protected XPath20 fXPath = null;
+    protected final XPath20 fXPath;
     
     /** XPath 2.0 expression. PsychoPath XPath 2.0 expression. */
-    protected XPath fXPathPsychoPath = null;
+    protected final XPath fXPathPsychoPath;
         
     /** XPath 2.0 namespace context. Derived from XSDocumentInfo in XSD traversers. */
-    protected NamespaceSupport fXPath2NamespaceContext = null;
+    protected final NamespaceSupport fXPath2NamespaceContext;
 
     /** Constructs a "test" for type alternatives */
     public Test(XPath20 xpath, XSTypeAlternativeImpl typeAlternative,
-                               NamespaceSupport namespaceContext) {
+            NamespaceSupport namespaceContext) {
         fXPath = xpath;
+        fXPathPsychoPath = null;
         fTypeAlternative = typeAlternative;
         fXPath2NamespaceContext = namespaceContext;
     }
@@ -68,10 +69,11 @@ public class Test extends AbstractPsycho
      * for PsychoPath XPath processor.
      */
     public Test(XPath xpath, XSTypeAlternativeImpl typeAlternative,
-                             NamespaceSupport namespaceContext) {
-       fXPathPsychoPath = xpath;
-       fTypeAlternative = typeAlternative;
-       fXPath2NamespaceContext = namespaceContext;
+            NamespaceSupport namespaceContext) {
+        fXPath = null;
+        fXPathPsychoPath = xpath;
+        fTypeAlternative = typeAlternative;
+        fXPath2NamespaceContext = namespaceContext;
     }
 
     public XSTypeAlternativeImpl getTypeAlternative() {



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