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 5f92f943e38253b2dad493b14343749393d5a162..1b80ec3b26bca7f6c0e290657fe1c509dfb5ba67 100644 (file)
@@ -10,7 +10,7 @@ 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 {
+public final class NioEventLoopGroupCloseable extends NioEventLoopGroup implements AutoCloseable {
     private NioEventLoopGroupCloseable(final int threadCount) {
         super(threadCount);
     }
@@ -19,15 +19,15 @@ public class NioEventLoopGroupCloseable extends NioEventLoopGroup implements Aut
     }
 
     @Override
-    public void close() throws Exception {
+    public void close() {
         shutdownGracefully(0, 1, TimeUnit.SECONDS);
     }
 
     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
+}