shjung 1 year ago
parent
commit
aafb6d8365
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/java/com/its/app/utils/NettyUtils.java

+ 2 - 2
src/main/java/com/its/app/utils/NettyUtils.java

@@ -95,14 +95,14 @@ public final class NettyUtils {
 
     public static EventLoopGroup newEventLoopGroup(int nThreads, String threadPoolName) {
         if (isEpollAvailable()) {
-            if (threadPoolName.equals("")) {
+            if (threadPoolName.isEmpty()) {
                 return new EpollEventLoopGroup(nThreads);
             }
             else {
                 return new EpollEventLoopGroup(nThreads, new DefaultThreadFactory("epo"+threadPoolName));
             }
         } else {
-            if (threadPoolName.equals("")) {
+            if (threadPoolName.isEmpty()) {
                 return new NioEventLoopGroup(nThreads);
             }
             else {