XenoAmess commented on a change in pull request #551:
URL: https://github.com/apache/commons-lang/pull/551#discussion_r439740225



##########
File path: src/main/java/org/apache/commons/lang3/ArrayUtils.java
##########
@@ -3110,19 +3110,22 @@ public static int indexOf(final short[] array, final 
short valueToFind, int star
     }
 
     /**
-     * Returns whether a given array can safely be accessed at the given index.
+     * <p>Returns whether a given array can safely be accessed at the given 
index.
+     *
+     * <pre>
+     * ArrayUtils.isArrayIndexValid(null, 0)       = false
+     * ArrayUtils.isArrayIndexValid([], 0)         = false
+     * ArrayUtils.isArrayIndexValid(["a"], 0)      = true
+     * </pre>

Review comment:
       @nstdio 
   In short gary think your docs should be 
   ```
        * ArrayUtils.isArrayIndexValid(null, 0)       = false
        * ArrayUtils.isArrayIndexValid([], 0)         = false
        * ArrayUtils.isArrayIndexValid(["a"], 0)      = true</pre>
   ```
   
   instead of 
   
   ```
        * ArrayUtils.isArrayIndexValid(null, 0)       = false
        * ArrayUtils.isArrayIndexValid([], 0)         = false
        * ArrayUtils.isArrayIndexValid(["a"], 0)      = true
        * </pre>
   ```
   
   But I think the current docs is OK.
   So suggest just wait.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to