FrankYang0529 commented on code in PR #16019:
URL: https://github.com/apache/kafka/pull/16019#discussion_r1686393344


##########
tools/src/main/java/org/apache/kafka/tools/consumer/ConsoleConsumerOptions.java:
##########
@@ -364,6 +364,10 @@ private static String convertDeprecatedClass(String 
className) {
                 System.err.println("WARNING: kafka.tools.NoOpMessageFormatter 
is deprecated and will be removed in the next major release. " +
                         "Please use 
org.apache.kafka.tools.consumer.NoOpMessageFormatter instead");
                 return NoOpMessageFormatter.class.getName();
+            case 
"kafka.coordinator.transaction.TransactionLog$TransactionLogMessageFormatter":
+                System.err.println("WARNING: 
kafka.coordinator.transaction.TransactionLog$TransactionLogMessageFormatter is 
deprecated and will be removed in the next major release. " +
+                        "Please use 
org.apache.kafka.tools.consumer.TransactionLogMessageFormatter instead");
+                return className;

Review Comment:
   If we can deprecate the old one, how about using 
`TransactionLogMessageFormatter.class.getName()` here?



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