code: private void ensureEntryArrayMutable() {
      checkMutable();
      if (entryList.isEmpty() && !(entryList instanceof ArrayList)) {
        entryList = new ArrayList<Entry>(maxArraySize);
      }
    }
docs: Lazily creates the entry list. Any code that adds to the list must first
  call this method.