From 6b2d41b680d3c137114f4c92ee6fe6dc5e54598a Mon Sep 17 00:00:00 2001 From: Igor Akkerman Date: Wed, 11 Feb 2015 23:49:07 +0100 Subject: [PATCH] Method name optimized --- .../org/jlib/container/storage/AbstractLinearIndexStorage.java | 2 +- .../java/org/jlib/container/storage/array/ArrayStorage.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(),