soarez commented on code in PR #14290: URL: https://github.com/apache/kafka/pull/14290#discussion_r1358322899
########## metadata/src/test/java/org/apache/kafka/controller/PartitionChangeBuilderTest.java: ########## @@ -411,7 +420,7 @@ public void testUncleanLeaderElection() { .setIsr(Arrays.asList(2)) .setLeader(2) .setLeaderRecoveryState(LeaderRecoveryState.RECOVERING.value()), - PARTITION_CHANGE_RECORD.highestSupportedVersion() + (short) 0 // TODO test against highest supported version Review Comment: Checkstyle doesn't complain about either variation. However, I find your suggestion slightly harder to read, it makes less obvious that `(short) 0` is a second argument to the ApiMessageAndVersion constructor, rather it look like it is part of the record declaration. What's your thinking behind the change? -- 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