[jboss-cvs] JBossAS SVN: r86677 - trunk/system/src/main/org/jboss/system/server/profileservice/repository/clustered/metadata.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Apr 2 11:43:41 EDT 2009


Author: bstansberry at jboss.com
Date: 2009-04-02 11:43:41 -0400 (Thu, 02 Apr 2009)
New Revision: 86677

Modified:
   trunk/system/src/main/org/jboss/system/server/profileservice/repository/clustered/metadata/AbstractSortedMetadataContainer.java
Log:
[JBAS-5552] Fix equals

Modified: trunk/system/src/main/org/jboss/system/server/profileservice/repository/clustered/metadata/AbstractSortedMetadataContainer.java
===================================================================
--- trunk/system/src/main/org/jboss/system/server/profileservice/repository/clustered/metadata/AbstractSortedMetadataContainer.java	2009-04-02 14:41:57 UTC (rev 86676)
+++ trunk/system/src/main/org/jboss/system/server/profileservice/repository/clustered/metadata/AbstractSortedMetadataContainer.java	2009-04-02 15:43:41 UTC (rev 86677)
@@ -212,7 +212,12 @@
             return true;
          }
          
-         return sortedItems.equals(other);
+         if (other instanceof Collection)
+         {
+            Collection<?> o = (Collection<?>) other;
+            return sortedItems.size() == o.size() && sortedItems.containsAll(o); 
+         }
+         return false;
       }
       
       public int hashCode()




More information about the jboss-cvs-commits mailing list