src/share/classes/sun/util/PreHashedMap.java
Print this page
@@ -124,11 +124,11 @@
* @param rows
* The row array to be initialized
*/
protected abstract void init(Object[] ht);
- // @SuppressWarnings("unchecked")
+ @SuppressWarnings("unchecked")
private V toV(Object x) {
return (V)x;
}
public V get(Object k) {
@@ -257,12 +257,11 @@
public boolean equals(Object ob) {
if (ob == this)
return true;
if (!(ob instanceof Map.Entry))
return false;
- Map.Entry<String,V> that
- = (Map.Entry<String,V>)ob;
+ Map.Entry<?,?> that = (Map.Entry<?,?>)ob;
return ((this.getKey() == null
? that.getKey() == null
: this.getKey()
.equals(that.getKey()))
&&