hachikuji commented on a change in pull request #8562: URL: https://github.com/apache/kafka/pull/8562#discussion_r416760519
########## File path: core/src/test/scala/unit/kafka/server/ReplicaAlterLogDirsThreadTest.scala ########## @@ -243,9 +245,9 @@ class ReplicaAlterLogDirsThreadTest { responseCallback = callbackCaptor.capture(), isolationLevel = ArgumentMatchers.eq(IsolationLevel.READ_UNCOMMITTED), clientMetadata = ArgumentMatchers.eq(None) - )).thenAnswer(_ => { - callbackCaptor.getValue.apply(Seq((topicPartition, responseData))) - }) + )) thenAnswer new Answer[Unit] { Review comment: nit: inline usage like this is generally reserved for operators like `+` ---------------------------------------------------------------- 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