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 2006/02/27 07:31:22 UTC

svn commit: r381269 - /xerces/java/trunk/src/org/apache/xerces/impl/xs/util/XSNamedMapImpl.java

Author: mrglavas
Date: Sun Feb 26 22:31:20 2006
New Revision: 381269

URL: http://svn.apache.org/viewcvs?rev=381269&view=rev
Log:
A small improvement to the isEqual() method.

Modified:
    xerces/java/trunk/src/org/apache/xerces/impl/xs/util/XSNamedMapImpl.java

Modified: xerces/java/trunk/src/org/apache/xerces/impl/xs/util/XSNamedMapImpl.java
URL: http://svn.apache.org/viewcvs/xerces/java/trunk/src/org/apache/xerces/impl/xs/util/XSNamedMapImpl.java?rev=381269&r1=381268&r2=381269&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xs/util/XSNamedMapImpl.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xs/util/XSNamedMapImpl.java Sun Feb 26 22:31:20 2006
@@ -180,7 +180,7 @@
     }
     
     final boolean isEqual(String one, String two) {
-        return (one == two || (one != null && one.equals(two)));
+        return (one != null) ? one.equals(two) : (two == null);
     }
     
 } // class XSNamedMapImpl



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