Add 'protocol-framework/' from commit '5d015c2c5f800d136406c15fcb64fd531d4ffc26'
[netconf.git] / netconf / netconf-ssh / src / test / java / org / opendaylight / netconf / netty / EchoClient.java
index c8584a7ed8cb608aa34279aba1e866ea37fe34c4..2cdd97c9f90994a47472439a9320ad151a3a92b6 100644 (file)
@@ -45,23 +45,24 @@ public class EchoClient extends Thread {
         this.channelInitializer = channelInitializer;
     }
 
+    @SuppressWarnings("checkstyle:IllegalCatch")
     @Override
     public void run() {
         // Configure the client.
         EventLoopGroup group = new NioEventLoopGroup();
         try {
-            Bootstrap b = new Bootstrap();
+            Bootstrap bootstrap = new Bootstrap();
 
-            b.group(group)
+            bootstrap.group(group)
                     .channel(LocalChannel.class)
                     .handler(channelInitializer);
 
             // Start the client.
             LocalAddress localAddress = new LocalAddress("foo");
-            ChannelFuture f = b.connect(localAddress).sync();
+            ChannelFuture future = bootstrap.connect(localAddress).sync();
 
             // Wait until the connection is closed.
-            f.channel().closeFuture().sync();
+            future.channel().closeFuture().sync();
         } catch (Exception e) {
             LOG.error("Error in client", e);
             throw new RuntimeException("Error in client", e);