public void putAll(final Map map) {
        final int mapSize = map.size();
        if (this.size==0 && mapSize!=0 && map instanceof SortedMap) {
            final Comparator c = ((SortedMap)map).comparator();
            if (c == this.comparator || c != null && c.equals(this.comparator)) {
              ++this.modCount;
              try {
                  this.buildFromSorted(mapSize, map.entrySet().iterator(),
                                  null, null);
              } catch (final java.io.IOException cannotHappen) {
        	      // ignore
              } catch (final ClassNotFoundException cannotHappen) {
        	      // ignore
              }
              return;
            }
        }
        super.putAll(map);
    }