hzh0425 commented on code in PR #4603:
URL: https://github.com/apache/rocketmq/pull/4603#discussion_r920701672


##########
common/src/main/java/org/apache/rocketmq/common/ThreadFactoryImpl.java:
##########
@@ -38,6 +43,12 @@ public ThreadFactoryImpl(final String threadNamePrefix, 
boolean daemon) {
     public Thread newThread(Runnable r) {
         Thread thread = new Thread(r, threadNamePrefix + 
this.threadIndex.incrementAndGet());
         thread.setDaemon(daemon);
+        thread.setUncaughtExceptionHandler(new 
Thread.UncaughtExceptionHandler() {

Review Comment:
   It's better to use lambda



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

Reply via email to