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 {