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:00 UTC
svn commit: r660079 -
/xerces/java/trunk/src/org/apache/xerces/impl/xs/util/XSNamedMap4Types.java
Author: mrglavas
Date: Sun May 25 19:21:00 2008
New Revision: 660079
URL: http://svn.apache.org/viewvc?rev=660079&view=rev
Log:
Making the fType field final.
Modified:
xerces/java/trunk/src/org/apache/xerces/impl/xs/util/XSNamedMap4Types.java
Modified: xerces/java/trunk/src/org/apache/xerces/impl/xs/util/XSNamedMap4Types.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xs/util/XSNamedMap4Types.java?rev=660079&r1=660078&r2=660079&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xs/util/XSNamedMap4Types.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xs/util/XSNamedMap4Types.java Sun May 25 19:21:00 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