X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fconfig%2Fnetty-threadgroup-config%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fyang%2Fnetty%2Fthreadgroup%2FNioEventLoopGroupCloseable.java;h=1b80ec3b26bca7f6c0e290657fe1c509dfb5ba67;hb=refs%2Fchanges%2F02%2F83802%2F42;hp=51bf1f0e5272b99ae9aee636c903d8880da06bc9;hpb=12fcdfe39aa26dcba7fd3bb4d4c68e3d02e65c51;p=controller.git diff --git a/opendaylight/config/netty-threadgroup-config/src/main/java/org/opendaylight/controller/config/yang/netty/threadgroup/NioEventLoopGroupCloseable.java b/opendaylight/config/netty-threadgroup-config/src/main/java/org/opendaylight/controller/config/yang/netty/threadgroup/NioEventLoopGroupCloseable.java index 51bf1f0e52..1b80ec3b26 100644 --- a/opendaylight/config/netty-threadgroup-config/src/main/java/org/opendaylight/controller/config/yang/netty/threadgroup/NioEventLoopGroupCloseable.java +++ b/opendaylight/config/netty-threadgroup-config/src/main/java/org/opendaylight/controller/config/yang/netty/threadgroup/NioEventLoopGroupCloseable.java @@ -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 +}