--- jsr166/src/test/tck/DelayQueueTest.java 2015/10/06 00:03:55 1.76 +++ jsr166/src/test/tck/DelayQueueTest.java 2016/09/15 17:07:16 1.77 @@ -94,10 +94,8 @@ public class DelayQueueTest extends JSR1 } public boolean equals(Object other) { - return equals((NanoDelay)other); - } - public boolean equals(NanoDelay other) { - return other.trigger == trigger; + return (other instanceof NanoDelay) && + this.trigger == ((NanoDelay)other).trigger; } // suppress [overrides] javac warning