chia7712 commented on code in PR #20332: URL: https://github.com/apache/kafka/pull/20332#discussion_r2285181152
########## tools/src/main/java/org/apache/kafka/tools/TransactionsCommand.java: ########## @@ -848,17 +847,7 @@ private List<OpenTransaction> collectCandidateOpenTransactions( return candidateTransactions; } - private static class OpenTransaction { - private final TopicPartition topicPartition; - private final ProducerState producerState; - - private OpenTransaction( - TopicPartition topicPartition, - ProducerState producerState - ) { - this.topicPartition = topicPartition; - this.producerState = producerState; - } + private record OpenTransaction(TopicPartition topicPartition, ProducerState producerState) { Review Comment: yes, I will create a follow-up for it -- 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