This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push:
new 46acdde Fix comment typos
46acdde is described below
commit 46acdde8bde91f8f266ffeaefc8d526309c24998
Author: aherbert <[email protected]>
AuthorDate: Thu Jun 18 09:25:25 2020 +0100
Fix comment typos
---
src/main/java/org/apache/commons/lang3/ArrayUtils.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/commons/lang3/ArrayUtils.java
b/src/main/java/org/apache/commons/lang3/ArrayUtils.java
index 8b483d2..1fe9dd4 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 @@ public static int indexOf(final int[] array, final int
valueToFind) {
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 @@ public static int indexOf(final int[] array, final int
valueToFind) {
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;
}