gongxuanzhang commented on code in PR #19356:
URL: https://github.com/apache/kafka/pull/19356#discussion_r2030369156
##########
server-common/src/main/java/org/apache/kafka/queue/KafkaEventQueue.java:
##########
@@ -444,7 +445,7 @@ public KafkaEventQueue(
LogContext logContext,
String threadNamePrefix
) {
- this(time, logContext, threadNamePrefix, VoidEvent::new);
+ this(time, logContext, threadNamePrefix, VoidEvent.INSTANCE);
Review Comment:
I think it’s better to use `VoidEvent.INSTANCE` directly, as it avoids
creating unnecessary anonymous objects.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]