Raw types

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1023769 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2010-10-18 12:42:04 +00:00
parent 0a31bb5731
commit 3057736c79
1 changed files with 1 additions and 2 deletions

View File

@ -98,7 +98,6 @@ public class TiedMapEntry<K, V> implements Map.Entry<K, V>, KeyValue<K, V>, Seri
* @return true if equal key and value * @return true if equal key and value
*/ */
@Override @Override
@SuppressWarnings("unchecked")
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (obj == this) { if (obj == this) {
return true; return true;
@ -106,7 +105,7 @@ public class TiedMapEntry<K, V> implements Map.Entry<K, V>, KeyValue<K, V>, Seri
if (obj instanceof Map.Entry == false) { if (obj instanceof Map.Entry == false) {
return false; return false;
} }
Map.Entry other = (Map.Entry) obj; Map.Entry<?,?> other = (Map.Entry<?,?>) obj;
Object value = getValue(); Object value = getValue();
return return
(key == null ? other.getKey() == null : key.equals(other.getKey())) && (key == null ? other.getKey() == null : key.equals(other.getKey())) &&