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,10 +257,11 @@
                             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()