diff --git a/src/main/java/org/apache/commons/lang3/ArrayUtils.java b/src/main/java/org/apache/commons/lang3/ArrayUtils.java index 8b483d2d0..1fe9dd47c 100644 --- a/src/main/java/org/apache/commons/lang3/ArrayUtils.java +++ b/src/main/java/org/apache/commons/lang3/ArrayUtils.java @@ -5190,7 +5190,7 @@ static Object removeAll(final Object array, final BitSet indices) { final int srcLength = getLength(array); // No need to check maxIndex here, because method only currently called from removeElements() - // which guarantee to generate on;y valid bit entries. + // which guarantee to generate only valid bit entries. // final int maxIndex = indices.length(); // if (maxIndex > srcLength) { // throw new IndexOutOfBoundsException("Index: " + (maxIndex-1) + ", Length: " + srcLength); @@ -5258,7 +5258,7 @@ static Object removeAll(final Object array, final int... indices) { final int cp = end - index - 1; dest -= cp; System.arraycopy(array, index + 1, result, dest, cp); - // Afer this copy, we still have room for dest items. + // After this copy, we still have room for dest items. } end = index; }