kinow commented on a change in pull request #425: RandomUtils : comment error
URL: https://github.com/apache/commons-lang/pull/425#discussion_r315588120
 
 

 ##########
 File path: src/main/java/org/apache/commons/lang3/RandomUtils.java
 ##########
 @@ -166,23 +166,23 @@ public static long nextLong() {
      *
      * @param startInclusive
      *            the smallest value that can be returned, must be non-negative
-     * @param endInclusive
-     *            the upper bound (included)
+     * @param endExclusive
 
 Review comment:
   Ah, got it. It appeared to be inclusive, but looking at the `RandomUtils` 
implementation, it uses only `java.util.Random` (constant, not parametrized). 
And the methods used here, e.g. `.nextDouble()` is [inclusive, exclusive).

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to