# | 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; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |