You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2010/10/18 14:42:04 UTC
svn commit: r1023769 -
/commons/proper/collections/trunk/src/java/org/apache/commons/collections/keyvalue/TiedMapEntry.java
Author: sebb
Date: Mon Oct 18 12:42:04 2010
New Revision: 1023769
URL: http://svn.apache.org/viewvc?rev=1023769&view=rev
Log:
Raw types
Modified:
commons/proper/collections/trunk/src/java/org/apache/commons/collections/keyvalue/TiedMapEntry.java
Modified: commons/proper/collections/trunk/src/java/org/apache/commons/collections/keyvalue/TiedMapEntry.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/java/org/apache/commons/collections/keyvalue/TiedMapEntry.java?rev=1023769&r1=1023768&r2=1023769&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/java/org/apache/commons/collections/keyvalue/TiedMapEntry.java (original)
+++ commons/proper/collections/trunk/src/java/org/apache/commons/collections/keyvalue/TiedMapEntry.java Mon Oct 18 12:42:04 2010
@@ -98,7 +98,6 @@ public class TiedMapEntry<K, V> implemen
* @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> implemen
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())) &&