Clean up callhome TLS implementation
[netconf.git] / netconf / callhome-protocol / src / main / java / org / opendaylight / netconf / callhome / protocol / tls / TlsAuthChannelInitializer.java
index a413174509d11965e6e9b94a45ac7329fe13dcfa..ab9e95bbd50465fc47de3748690b81e817a5cfab 100644 (file)
@@ -10,23 +10,20 @@ package org.opendaylight.netconf.callhome.protocol.tls;
 import io.netty.channel.Channel;
 import io.netty.channel.ChannelInitializer;
 import io.netty.handler.ssl.SslHandler;
-import io.netty.util.concurrent.GenericFutureListener;
+import io.netty.util.concurrent.FutureListener;
 import org.opendaylight.netconf.client.SslHandlerFactory;
 
-@SuppressWarnings("rawtypes")
-final class TlsAuthChannelInitializer extends ChannelInitializer {
-
+final class TlsAuthChannelInitializer extends ChannelInitializer<Channel> {
     private static final String SSL_HANDLER_CHANNEL_NAME = "sslHandler";
 
     private final SslHandlerFactory sslHandlerFactory;
-    private final GenericFutureListener listener;
+    private final FutureListener<Channel> listener;
 
-    TlsAuthChannelInitializer(final SslHandlerFactory sslHandlerFactory, final GenericFutureListener listener) {
+    TlsAuthChannelInitializer(final SslHandlerFactory sslHandlerFactory, final FutureListener<Channel> listener) {
         this.sslHandlerFactory = sslHandlerFactory;
         this.listener = listener;
     }
 
-    @SuppressWarnings("unchecked")
     @Override
     public void initChannel(final Channel ch) {
         final SslHandler sslHandler = sslHandlerFactory.createSslHandler();