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 2007/06/17 20:36:08 UTC

svn commit: r548093 - /xerces/java/trunk/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java

Author: mrglavas
Date: Sun Jun 17 11:36:08 2007
New Revision: 548093

URL: http://svn.apache.org/viewvc?view=rev&rev=548093
Log:
Making ValidationContextImpl a static final nested class (and its fExternal field final).

Modified:
    xerces/java/trunk/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java

Modified: xerces/java/trunk/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java?view=diff&rev=548093&r1=548092&r2=548093
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java Sun Jun 17 11:36:08 2007
@@ -2815,8 +2815,10 @@
      * A wrapper of ValidationContext, to provide a way of switching to a
      * different Namespace declaration context.
      */
-    class ValidationContextImpl implements ValidationContext {
-        ValidationContext fExternal;
+    static final class ValidationContextImpl implements ValidationContext {
+
+        final ValidationContext fExternal;
+        
         ValidationContextImpl(ValidationContext external) {
             fExternal = external;
         }
@@ -2866,10 +2868,12 @@
         }
 
         public String getURI(String prefix) {
-            if (fNSContext == null)
+            if (fNSContext == null) {
                 return fExternal.getURI(prefix);
-            else
+            }
+            else {
                 return fNSContext.getURI(prefix);
+            }
         }
     }
 



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