# | Line 289 | Line 289 | public class JSR166TestCase extends Test | |
---|---|---|
289 | * earlier by threadRecordFailure. | |
290 | */ | |
291 | public void tearDown() throws Exception { | |
292 | < | Throwable t = threadFailure.get(); |
292 | > | Throwable t = threadFailure.getAndSet(null); |
293 | if (t != null) { | |
294 | if (t instanceof Error) | |
295 | throw (Error) t; | |
# | Line 636 | Line 636 | public class JSR166TestCase extends Test | |
636 | long millisElapsedSince(long startNanoTime) { | |
637 | return NANOSECONDS.toMillis(System.nanoTime() - startNanoTime); | |
638 | } | |
639 | < | |
639 | > | |
640 | /** | |
641 | * Returns a new started daemon Thread running the given runnable. | |
642 | */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |