Bump odlparent to 6.0.0
[controller.git] / opendaylight / config / netty-threadgroup-config / src / main / java / org / opendaylight / controller / config / yang / netty / threadgroup / NioEventLoopGroupCloseable.java
index 372cf0ecb798211ae9214ff6fc703f7bbbab0ea2..1b80ec3b26bca7f6c0e290657fe1c509dfb5ba67 100644 (file)
@@ -10,25 +10,24 @@ package org.opendaylight.controller.config.yang.netty.threadgroup;
 import io.netty.channel.nio.NioEventLoopGroup;
 import java.util.concurrent.TimeUnit;
 
-public class NioEventLoopGroupCloseable extends NioEventLoopGroup implements AutoCloseable {
-    private NioEventLoopGroupCloseable(int threadCount) {
+public final class NioEventLoopGroupCloseable extends NioEventLoopGroup implements AutoCloseable {
+    private NioEventLoopGroupCloseable(final int threadCount) {
         super(threadCount);
     }
 
     private NioEventLoopGroupCloseable() {
-        super();
     }
 
     @Override
-    public void close() throws Exception {
+    public void close() {
         shutdownGracefully(0, 1, TimeUnit.SECONDS);
     }
 
-    public static NioEventLoopGroupCloseable newInstance(Integer threadCount) {
-        if(threadCount == null || threadCount <= 0) {
+    public static NioEventLoopGroupCloseable newInstance(final Integer threadCount) {
+        if (threadCount == null || threadCount <= 0) {
             return new NioEventLoopGroupCloseable();
         }
 
         return new NioEventLoopGroupCloseable(threadCount);
     }
-}
\ No newline at end of file
+}