[COLLECTIONS-704] Update size to capacity for GrowthList (#90)

This commit is contained in:
dota17 2019-10-23 03:46:53 +08:00 committed by Gary Gregory
parent 24539d8cd4
commit c184745990
1 changed files with 4 additions and 4 deletions

View File

@ -86,11 +86,11 @@ public class GrowthList<E> extends AbstractSerializableListDecorator<E> {
/** /**
* Constructor that uses an ArrayList internally. * Constructor that uses an ArrayList internally.
* *
* @param initialSize the initial size of the ArrayList * @param initialCapacity the initial capacity of the ArrayList
* @throws IllegalArgumentException if initial size is invalid * @throws IllegalArgumentException if initial capacity is invalid
*/ */
public GrowthList(final int initialSize) { public GrowthList(final int initialCapacity) {
super(new ArrayList<E>(initialSize)); super(new ArrayList<E>(initialCapacity));
} }
/** /**