import io.netty.channel.nio.NioEventLoopGroup;
import java.util.concurrent.TimeUnit;
-public class NioEventLoopGroupCloseable extends NioEventLoopGroup implements AutoCloseable {
+public final class NioEventLoopGroupCloseable extends NioEventLoopGroup implements AutoCloseable {
private NioEventLoopGroupCloseable(final int threadCount) {
super(threadCount);
}
}
public static NioEventLoopGroupCloseable newInstance(final Integer threadCount) {
- if(threadCount == null || threadCount <= 0) {
+ if (threadCount == null || threadCount <= 0) {
return new NioEventLoopGroupCloseable();
}
return new NioEventLoopGroupCloseable(threadCount);
}
-}
\ No newline at end of file
+}