if (e instanceof AbstractMap.BasicMapEntry)
if (e instanceof AbstractMap.SimpleEntry)
  public void putAll(Map<? extends K, ? extends V> m)  {    Map<K,V> addMap;    addMap = (Map<K,V>) m;    for (Map.Entry<K,V> e : addMap.entrySet())      {        // Optimize in case the Entry is one of our own.        if (e instanceof AbstractMap.BasicMapEntry)          {            AbstractMap.BasicMapEntry<? extends K, ? extends V> entry	      = (AbstractMap.BasicMapEntry<? extends K, ? extends V>) e;            put(entry.key, entry.value);          }        else          put(e.getKey(), e.getValue());      }  }