LANG-1402: comment proofread
Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/96f3ab84 Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/96f3ab84 Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/96f3ab84 Branch: refs/heads/master Commit: 96f3ab841096b6a480b4cae99bb05aebce1ff92d Parents: 7721302 Author: MarkDacek <mark.da...@richmond.edu> Authored: Sun Jul 8 19:20:48 2018 -0400 Committer: MarkDacek <mark.da...@richmond.edu> Committed: Sun Jul 8 19:20:48 2018 -0400 ---------------------------------------------------------------------- src/main/java/org/apache/commons/lang3/ArrayUtils.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-lang/blob/96f3ab84/src/main/java/org/apache/commons/lang3/ArrayUtils.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/lang3/ArrayUtils.java b/src/main/java/org/apache/commons/lang3/ArrayUtils.java index 7a5f950..3d5c6b0 100644 --- a/src/main/java/org/apache/commons/lang3/ArrayUtils.java +++ b/src/main/java/org/apache/commons/lang3/ArrayUtils.java @@ -8675,7 +8675,7 @@ public class ArrayUtils { /** * Gets an element from the array if the array is non-null and appropriately long, otherwise returns null - * @param <T> the component type of the array + * @param <T> the component type of the array, may be null * @param array the array holding the desired element * @param index the index of the element in the array * @return The element in the array at the index, or null if it is ill-formatted @@ -8688,10 +8688,10 @@ public class ArrayUtils { /** * Gets an element from the array if the array is non-null and appropriately long, otherwise returns the specified value * @param <T> the component type of the array - * @param array the array holding the desired element + * @param array the array holding the desired element, may be null * @param index the index of the element in the array * @param defaultReturn the object to be returned if the array is null or shorter than the index - * @return The element in the array at the specified index, or the given argument if it is ill-formatted + * @return The element in the array at the specified index, or the given argument if it the array is not sufficiently long for the index. May return null if the array contains null * @since 3.8 */ public static <T> T get(T[] array, int index, T defaultReturn){ @@ -8709,8 +8709,8 @@ public class ArrayUtils { /** * Returns whether a given array can safely be accessed at the given index. * @param <T> the component type of the array - * @param array the array holding the desired element - * @param index the index of the element in the array + * @param array the array to inspect + * @param index the index of the array to be inspected * @return Whether the given index is safely-accessible in the given array * @since 3.8 */