code: private void resizeMeMaybe(int newSize) {
      int entriesSize = entries.length;
      if (newSize > entriesSize) {
        int newCapacity = entriesSize + Math.max(1, entriesSize >>> 1);
        if (newCapacity < 0) {
          newCapacity = Integer.MAX_VALUE;
        }
        if (newCapacity != entriesSize) {
          resizeEntries(newCapacity);
        }
      }
    }
docs: Resizes the entries storage if necessary.