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 51bf1f0e5272b99ae9aee636c903d8880da06bc9..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);
     }
@@ -24,10 +24,10 @@ public class NioEventLoopGroupCloseable extends NioEventLoopGroup implements Aut
     }
 
     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
+}