# | Line 78 | Line 78 | public class ReentrantLockTest extends J | |
---|---|---|
78 | long startTime = System.nanoTime(); | |
79 | while (!lock.hasQueuedThread(t)) { | |
80 | if (millisElapsedSince(startTime) > LONG_DELAY_MS) | |
81 | < | throw new AssertionError("timed out"); |
81 | > | throw new AssertionFailedError("timed out"); |
82 | Thread.yield(); | |
83 | } | |
84 | assertTrue(t.isAlive()); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |