diff --git a/src/main/java/org/jlib/container/storage/AbstractLinearIndexStorage.java b/src/main/java/org/jlib/container/storage/AbstractLinearIndexStorage.java index 7f6b8fbe..ddcfcdff 100644 --- a/src/main/java/org/jlib/container/storage/AbstractLinearIndexStorage.java +++ b/src/main/java/org/jlib/container/storage/AbstractLinearIndexStorage.java @@ -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()); diff --git a/src/main/java/org/jlib/container/storage/array/ArrayStorage.java b/src/main/java/org/jlib/container/storage/array/ArrayStorage.java index fdfc8a47..42354c77 100644 --- a/src/main/java/org/jlib/container/storage/array/ArrayStorage.java +++ b/src/main/java/org/jlib/container/storage/array/ArrayStorage.java @@ -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(),