# | Line 85 | Line 85 | public class ReentrantReadWriteLockTest | |
---|---|---|
85 | Thread.yield(); | |
86 | } | |
87 | assertTrue(t.isAlive()); | |
88 | < | assertTrue(lock.getOwner() != t); |
88 | > | assertNotSame(t, lock.getOwner()); |
89 | } | |
90 | ||
91 | /** | |
# | Line 146 | Line 146 | public class ReentrantReadWriteLockTest | |
146 | lock.writeLock().unlock(); | |
147 | } | |
148 | ||
149 | < | enum AwaitMethod { await, awaitTimed, awaitNanos, awaitUntil }; |
149 | > | enum AwaitMethod { await, awaitTimed, awaitNanos, awaitUntil } |
150 | ||
151 | /** | |
152 | * Awaits condition using the specified AwaitMethod. |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |