Skip to content

Commit

Permalink
argument validation optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
igorakkerman committed Feb 11, 2015
1 parent 97cdc46 commit a52d741
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ public void ensureSplitCapacity(final int splitIndex, final int splitCapacity)
throws InvalidIndexException {
ensureIndexValid(splitIndex);

ensureCapacityValid(splitCapacity);

if (splitCapacity == 0)
return;

ensureCapacityValid(splitCapacity);

safeEnsureSplitCapacity(splitIndex, splitCapacity);

getContentIndexRange().incrementMaximum(splitCapacity);
Expand Down

0 comments on commit a52d741

Please sign in to comment.