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:
parent
0a31bb5731
commit
3057736c79
|
@ -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
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public boolean equals(Object obj) {
|
||||
if (obj == this) {
|
||||
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) {
|
||||
return false;
|
||||
}
|
||||
Map.Entry other = (Map.Entry) obj;
|
||||
Map.Entry<?,?> other = (Map.Entry<?,?>) obj;
|
||||
Object value = getValue();
|
||||
return
|
||||
(key == null ? other.getKey() == null : key.equals(other.getKey())) &&
|
||||
|
|
Loading…
Reference in New Issue