|
@@ -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 {
|