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

Comparing jsr166/src/main/java/util/concurrent/TimeUnit.java (file contents):
Revision 1.44 by jsr166, Wed Feb 4 09:04:24 2015 UTC vs.
Revision 1.45 by jsr166, Tue Feb 17 18:55:39 2015 UTC

# Line 23 | Line 23 | package java.util.concurrent;
23   * the following code will timeout in 50 milliseconds if the {@link
24   * java.util.concurrent.locks.Lock lock} is not available:
25   *
26 < *  <pre> {@code
26 > * <pre> {@code
27   * Lock lock = ...;
28   * if (lock.tryLock(50L, TimeUnit.MILLISECONDS)) ...}</pre>
29   *
30   * while this code will timeout in 50 seconds:
31 < *  <pre> {@code
31 > * <pre> {@code
32   * Lock lock = ...;
33   * if (lock.tryLock(50L, TimeUnit.SECONDS)) ...}</pre>
34   *
# Line 300 | Line 300 | public enum TimeUnit {
300       * method (see {@link BlockingQueue#poll BlockingQueue.poll})
301       * using:
302       *
303 <     *  <pre> {@code
303 >     * <pre> {@code
304       * public synchronized Object poll(long timeout, TimeUnit unit)
305       *     throws InterruptedException {
306       *   while (empty) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines