[FELIX-4942] Capabilities should not really implements equals
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1690698 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/resolver/src/test/java/org/apache/felix/resolver/test/util/GenericCapability.java b/resolver/src/test/java/org/apache/felix/resolver/test/util/GenericCapability.java
index e384d1e..9d58cb4 100644
--- a/resolver/src/test/java/org/apache/felix/resolver/test/util/GenericCapability.java
+++ b/resolver/src/test/java/org/apache/felix/resolver/test/util/GenericCapability.java
@@ -76,25 +76,4 @@
+ 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