felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r1690698 - /felix/trunk/resolver/src/test/java/org/apache/felix/resolver/test/util/GenericCapability.java
Date Mon, 13 Jul 2015 15:16:21 GMT
Author: gnodet
Date: Mon Jul 13 15:16:20 2015
New Revision: 1690698

URL: http://svn.apache.org/r1690698
Log:
[FELIX-4942] Capabilities should not really implements equals

Modified:
    felix/trunk/resolver/src/test/java/org/apache/felix/resolver/test/util/GenericCapability.java

Modified: felix/trunk/resolver/src/test/java/org/apache/felix/resolver/test/util/GenericCapability.java
URL: http://svn.apache.org/viewvc/felix/trunk/resolver/src/test/java/org/apache/felix/resolver/test/util/GenericCapability.java?rev=1690698&r1=1690697&r2=1690698&view=diff
==============================================================================
--- felix/trunk/resolver/src/test/java/org/apache/felix/resolver/test/util/GenericCapability.java
(original)
+++ felix/trunk/resolver/src/test/java/org/apache/felix/resolver/test/util/GenericCapability.java
Mon Jul 13 15:16:20 2015
@@ -76,25 +76,4 @@ public class GenericCapability implement
             + getAttributes();
     }
 
-    @Override
-    public boolean equals(Object o) {
-        if (this == o) return true;
-        if (o == null || getClass() != o.getClass()) return false;
-
-        GenericCapability that = (GenericCapability) o;
-
-        if (!m_attrs.equals(that.m_attrs)) return false;
-        if (!m_dirs.equals(that.m_dirs)) return false;
-        if (!m_namespace.equals(that.m_namespace)) return false;
-
-        return true;
-    }
-
-    @Override
-    public int hashCode() {
-        int result = m_namespace.hashCode();
-        result = 31 * result + m_dirs.hashCode();
-        result = 31 * result + m_attrs.hashCode();
-        return result;
-    }
 }
\ No newline at end of file



Mime
View raw message