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 dr...@apache.org on 2005/08/24 18:19:35 UTC

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

Author: draier
Date: Wed Aug 24 09:19:13 2005
New Revision: 239705

URL: http://svn.apache.org/viewcvs?rev=239705&view=rev
Log:
added serialization, fixed bug in equals (36236)

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/viewcvs/jakarta/slide/trunk/src/share/org/apache/slide/common/PropertyName.java?rev=239705&r1=239704&r2=239705&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 Wed Aug 24 09:19:13 2005
@@ -24,6 +24,7 @@
 
 import java.util.HashMap;
 import java.util.Map;
+import java.io.Serializable;
 
 import org.apache.slide.content.NodeProperty;
 import org.apache.slide.content.NodeRevisionDescriptor;
@@ -34,7 +35,7 @@
  * @version $Revision$
  *
  **/
-public class PropertyName {
+public class PropertyName implements Serializable {
     
     private static Map instances = new HashMap();
     
@@ -174,7 +175,7 @@
        if (other instanceof PropertyName) {
            PropertyName that = (PropertyName)other;
            
-           return this.name == that.name && this.namespace == that.namespace;
+           return this.name.equals(that.name) && this.namespace.equals(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