ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/ThreadTest.java
(Generate patch)

Comparing jsr166/src/test/tck/ThreadTest.java (file contents):
Revision 1.19 by jsr166, Sat Feb 27 20:13:53 2016 UTC vs.
Revision 1.21 by dl, Tue Mar 22 21:29:24 2022 UTC

# Line 48 | Line 48 | public class ThreadTest extends JSR166Te
48       * getDefaultUncaughtExceptionHandler returns value of last
49       * setDefaultUncaughtExceptionHandler.
50       */
51 +    @SuppressWarnings("removal")
52      public void testGetAndSetDefaultUncaughtExceptionHandler() {
53 <        assertEquals(null, Thread.getDefaultUncaughtExceptionHandler());
53 >        assertNull(Thread.getDefaultUncaughtExceptionHandler());
54          // failure due to SecurityException is OK.
55          // Would be nice to explicitly test both ways, but cannot yet.
56          Thread.UncaughtExceptionHandler defaultHandler

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines