You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by lu...@apache.org on 2006/08/07 10:30:07 UTC

svn commit: r429274 - /jakarta/slide/trunk/src/share/org/apache/slide/common/PropertyName.java

Author: luetzkendorf
Date: Mon Aug  7 01:30:06 2006
New Revision: 429274

URL: http://svn.apache.org/viewvc?rev=429274&view=rev
Log:
Change: performance in PropertyName.equals

Modified:
    jakarta/slide/trunk/src/share/org/apache/slide/common/PropertyName.java

Modified: jakarta/slide/trunk/src/share/org/apache/slide/common/PropertyName.java
URL: http://svn.apache.org/viewvc/jakarta/slide/trunk/src/share/org/apache/slide/common/PropertyName.java?rev=429274&r1=429273&r2=429274&view=diff
==============================================================================
--- jakarta/slide/trunk/src/share/org/apache/slide/common/PropertyName.java (original)
+++ jakarta/slide/trunk/src/share/org/apache/slide/common/PropertyName.java Mon Aug  7 01:30:06 2006
@@ -175,7 +175,8 @@
        if (other instanceof PropertyName) {
            PropertyName that = (PropertyName)other;
            
-           return this.name.equals(that.name) && this.namespace.equals(that.namespace);
+           // we can use == because we have internalized name and namespace
+           return this.name == that.name && this.namespace == that.namespace;
        }
        
        return false;



---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org