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

[email protected]
Newsgroups gmane.comp.jakarta.slide.devel
Message-ID <[email protected]>
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;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.