< prev index next >

test/jdk/java/util/concurrent/tck/SubmissionPublisherTest.java

Print this page
8234131: Miscellaneous changes imported from jsr166 CVS 2020-12
Reviewed-by: martin

*** 983,993 **** * consume(null) throws NPE */ public void testConsumeNPE() { SubmissionPublisher<Integer> p = basicPublisher(); try { ! CompletableFuture<Void> f = p.consume(null); shouldThrow(); } catch (NullPointerException success) {} } /** --- 983,993 ---- * consume(null) throws NPE */ public void testConsumeNPE() { SubmissionPublisher<Integer> p = basicPublisher(); try { ! CompletableFuture<Void> unused = p.consume(null); shouldThrow(); } catch (NullPointerException success) {} } /**
< prev index next >