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

Comparing jsr166/src/test/tck/DelayQueueTest.java (file contents):
Revision 1.60 by jsr166, Tue Feb 21 02:04:17 2012 UTC vs.
Revision 1.61 by jsr166, Fri Apr 5 19:27:23 2013 UTC

# Line 62 | Line 62 | public class DelayQueueTest extends JSR1
62              return (other instanceof PDelay) &&
63                  this.pseudodelay == ((PDelay)other).pseudodelay;
64          }
65 +        // suppress [overrides] javac warning
66 +        public int hashCode() { return pseudodelay; }
67          public long getDelay(TimeUnit ignore) {
68              return Integer.MIN_VALUE + pseudodelay;
69          }
# Line 97 | Line 99 | public class DelayQueueTest extends JSR1
99              return other.trigger == trigger;
100          }
101  
102 +        // suppress [overrides] javac warning
103 +        public int hashCode() { return (int) trigger; }
104 +
105          public long getDelay(TimeUnit unit) {
106              long n = trigger - System.nanoTime();
107              return unit.convert(n, TimeUnit.NANOSECONDS);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines