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