ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ThreadLocalRandom.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/ThreadLocalRandom.java (file contents):
Revision 1.19 by dl, Fri Aug 9 12:13:14 2013 UTC vs.
Revision 1.20 by dl, Tue Aug 13 17:13:49 2013 UTC

# Line 297 | Line 297 | public class ThreadLocalRandom extends R
297       *        positive.
298       * @return a pseudorandom {@code int} value between zero
299       *         (inclusive) and the bound (exclusive)
300 <     * @throws IllegalArgumentException if the bound is less than zero
300 >     * @throws IllegalArgumentException if {@code bound} is not positive
301       */
302      public int nextInt(int bound) {
303          if (bound <= 0)
# Line 349 | Line 349 | public class ThreadLocalRandom extends R
349       *        positive.
350       * @return a pseudorandom {@code long} value between zero
351       *         (inclusive) and the bound (exclusive)
352 <     * @throws IllegalArgumentException if {@code bound} is less than zero
352 >     * @throws IllegalArgumentException if {@code bound} is not positive
353       */
354      public long nextLong(long bound) {
355          if (bound <= 0)
# Line 403 | Line 403 | public class ThreadLocalRandom extends R
403       *        positive.
404       * @return a pseudorandom {@code double} value between zero
405       *         (inclusive) and the bound (exclusive)
406 <     * @throws IllegalArgumentException if {@code bound} is less than zero
406 >     * @throws IllegalArgumentException if {@code bound} is not positive
407       */
408      public double nextDouble(double bound) {
409          if (!(bound > 0.0))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines