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/05/26 04:21:40 UTC

svn commit: r660080 - /xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/util/XSNamedMap4Types.java

Author: mrglavas
Date: Sun May 25 19:21:39 2008
New Revision: 660080

URL: http://svn.apache.org/viewvc?rev=660080&view=rev
Log:
Making the fType field final.

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

Modified: xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/util/XSNamedMap4Types.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/util/XSNamedMap4Types.java?rev=660080&r1=660079&r2=660080&view=diff
==============================================================================
--- xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/util/XSNamedMap4Types.java (original)
+++ xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/util/XSNamedMap4Types.java Sun May 25 19:21:39 2008
@@ -30,10 +30,10 @@
  *
  * @version $Id$
  */
-public class XSNamedMap4Types extends XSNamedMapImpl {
+public final class XSNamedMap4Types extends XSNamedMapImpl {
 
     // the type of component stored here: complex or simple type
-    short fType;
+    private final short fType;
     
     /**
      * Construct an XSNamedMap implmentation for one namespace
@@ -107,8 +107,9 @@
             if (isEqual(namespace, fNamespaces[i])) {
                 XSTypeDefinition type = (XSTypeDefinition)fMaps[i].get(localName);
                 // only return it if it mataches the required type
-                if (type.getTypeCategory() == fType)
+                if (type.getTypeCategory() == fType) {
                     return type;
+                }
                 return null;
             }
         }



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