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