ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/JSR166TestCase.java
(Generate patch)

Comparing jsr166/src/test/tck/JSR166TestCase.java (file contents):
Revision 1.134 by jsr166, Sun Jun 14 20:58:14 2015 UTC vs.
Revision 1.135 by jsr166, Fri Jul 3 05:48:30 2015 UTC

# Line 481 | Line 481 | public class JSR166TestCase extends Test
481      }
482  
483      /**
484 <     * Returns a new Date instance representing a time delayMillis
485 <     * milliseconds in the future.
484 >     * Returns a new Date instance representing a time at least
485 >     * delayMillis milliseconds in the future.
486       */
487      Date delayedDate(long delayMillis) {
488 <        return new Date(System.currentTimeMillis() + delayMillis);
488 >        // Add 1 because currentTimeMillis is known to round into the past.
489 >        return new Date(System.currentTimeMillis() + delayMillis + 1);
490      }
491  
492      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines