mimaison commented on code in PR #15877:
URL: https://github.com/apache/kafka/pull/15877#discussion_r1598183774


##########
clients/src/test/java/org/apache/kafka/clients/consumer/KafkaConsumerTest.java:
##########
@@ -1840,28 +1840,28 @@ public void 
testOperationsBySubscribingConsumerWithDefaultGroupId(GroupProtocol
             // OK, expected
         }
 
-        try (KafkaConsumer<byte[], byte[]> consumer = 
newConsumer(groupProtocol, (String) null)) {
+        try (KafkaConsumer<byte[], byte[]> consumer = 
newConsumer(groupProtocol, null)) {
             consumer.subscribe(Collections.singleton(topic));
             fail("Expected an InvalidGroupIdException");
         } catch (InvalidGroupIdException e) {
             // OK, expected
         }

Review Comment:
   Yes, I was able to simplify a few of these. Thanks!



-- 
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.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

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

Reply via email to