Fixed equals to consider owner apart from uri
authorChristos Stathis <chstath@ebs.gr>
Fri, 15 Jun 2012 14:09:52 +0000 (17:09 +0300)
committerChristos Stathis <chstath@ebs.gr>
Fri, 15 Jun 2012 14:09:52 +0000 (17:09 +0300)
src/gr/grnet/pithos/web/client/foldertree/Folder.java

index 3c20908..7f6b4a9 100644 (file)
@@ -246,7 +246,7 @@ public class Folder extends Resource {
     public boolean equals(Object other) {
         if (other instanceof Folder) {
             Folder o = (Folder) other;
-            return getUri().equals(o.getUri());
+            return owner.equals(o.getOwner()) && getUri().equals(o.getUri());
         }
         return false;
     }