mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-10 12:05:06 +00:00
Fix comment typos
This commit is contained in:
parent
8fcefb4f98
commit
46acdde8bd
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user