Skip to content

Commit 9ead80c

Browse files
committed
Javadoc
1 parent e859703 commit 9ead80c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/main/java/org/apache/commons/collections4/ArrayUtils.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ final class ArrayUtils {
4444
* The method returns {@code false} if a {@code null} array is passed in.
4545
* </p>
4646
*
47-
* @param array the array to search
48-
* @param objectToFind the object to find
47+
* @param array the array to search, may be {@code null}.
48+
* @param objectToFind the object to find, may be {@code null}.
4949
* @return {@code true} if the array contains the object
5050
*/
5151
static boolean contains(final Object[] array, final Object objectToFind) {
@@ -63,8 +63,8 @@ static boolean contains(final Object[] array, final Object objectToFind) {
6363
* A negative startIndex is treated as zero. A startIndex larger than the array length will return {@link CollectionUtils#INDEX_NOT_FOUND} ({@code -1}).
6464
* </p>
6565
*
66-
* @param array the array to search for the object, may be {@code null}
67-
* @param objectToFind the object to find, may be {@code null}
66+
* @param array the array to search for the object, may be {@code null}.
67+
* @param objectToFind the object to find, may be {@code null}.
6868
* @param startIndex the index to start searching at
6969
* @return the index of the object within the array starting at the index, {@link CollectionUtils#INDEX_NOT_FOUND} ({@code -1}) if not found or {@code null}
7070
* array input
@@ -100,8 +100,8 @@ static int indexOf(final Object[] array, final Object objectToFind, int startInd
100100
* This method returns {@link CollectionUtils#INDEX_NOT_FOUND} ({@code -1}) for a {@code null} input array.
101101
* </p>
102102
*
103-
* @param array the array to search for the object, may be {@code null}
104-
* @param objectToFind the object to find, may be {@code null}
103+
* @param array the array to search for the object, may be {@code null}.
104+
* @param objectToFind the object to find, may be {@code null}.
105105
* @return the index of the object within the array, {@link CollectionUtils#INDEX_NOT_FOUND} ({@code -1}) if not found or {@code null} array input
106106
*/
107107
static <T> int indexOf(final T[] array, final Object objectToFind) {

src/main/java/org/apache/commons/collections4/CollectionUtils.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -681,10 +681,10 @@ public static boolean containsAny(final Collection<?> coll1, final Collection<?>
681681
* </p>
682682
*
683683
* @param <T> the type of object to lookup in {@code coll1}.
684-
* @param coll1 the first collection, must not be null
685-
* @param coll2 the second collection, must not be null
686-
* @return {@code true} iff the intersection of the collections is non-empty
687-
* @throws NullPointerException if coll1 or coll2 is null
684+
* @param coll1 the first collection, must not be {@code null}.
685+
* @param coll2 the second collection, must not be {@code null}.
686+
* @return {@code true} iff the intersection of the collections is non-empty.
687+
* @throws NullPointerException if coll1 or coll2 is {@code null}.
688688
* @since 4.2
689689
* @see #intersection
690690
*/

0 commit comments

Comments
 (0)