Remove some warning in ReadOnlyMapEntry (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078207 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -48,9 +48,9 @@ public class ReadOnlyMapEntry<K, V> implements Map.Entry<K, V> {
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (!(o instanceof Map.Entry)) return false;
|
||||
if (!(o instanceof Map.Entry<?, ?>)) return false;
|
||||
if (this == o) return true;
|
||||
Map.Entry other = (Map.Entry) o;
|
||||
Map.Entry<?, ?> other = (Map.Entry<?, ?>) o;
|
||||
return UtilObject.equalsHelper(getKey(), other.getKey()) && UtilObject.equalsHelper(getValue(), other.getValue());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user