Skip to content

Commit

Permalink
Method name optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
igorakkerman committed Feb 11, 2015
1 parent f49b96d commit 6b2d41b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ protected void ensureIndexRangeValid(final String beginIndexName, final int begi
beginIndexName));
}

protected void validateOperationDescriptor(final IndexRangeOperationDescriptor copyDescriptor) {
protected void ensureOperationDescriptorValid(final IndexRangeOperationDescriptor copyDescriptor) {
ensureIndexRangeValid("sourceBeginIndex", copyDescriptor.getSourceRange().getMinimum(),
"sourceEndIndex", copyDescriptor.getSourceRange().getMaximum());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ protected void copyItems(final Item[] sourceArray, final Item[] targetArray,
final IndexRangeOperationDescriptor copyDescriptor)
throws InvalidIndexException {

validateOperationDescriptor(copyDescriptor);
ensureOperationDescriptorValid(copyDescriptor);

arraycopy(sourceArray, copyDescriptor.getSourceRange().getMinimum(), targetArray,
copyDescriptor.getTargetIndex(),
Expand Down

0 comments on commit 6b2d41b

Please sign in to comment.