wcarlson5 commented on a change in pull request #9273:
URL: https://github.com/apache/kafka/pull/9273#discussion_r499735461



##########
File path: streams/src/test/java/org/apache/kafka/streams/KafkaStreamsTest.java
##########
@@ -616,7 +616,7 @@ public void 
shouldThrowExceptionSettingUncaughtExceptionHandlerNotInCreateState(
         final KafkaStreams streams = new 
KafkaStreams(getBuilderWithSource().build(), props, supplier, time);
         streams.start();
         try {
-            streams.setUncaughtExceptionHandler(null);
+            
streams.setUncaughtExceptionHandler((Thread.UncaughtExceptionHandler) null);

Review comment:
       The test isn't really related to null its check to see if the client is 
in the correct state to set the handler. 
   
   The reason I added the cast is because the complier complains otherwise. I 
added the same test for the new handler below. 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to