shjung 1 年間 前
コミット
aafb6d8365
1 ファイル変更2 行追加2 行削除
  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 {