Fix checkstyle warnings in netconf-tcp
[controller.git] / opendaylight / netconf / netconf-tcp / src / main / java / org / opendaylight / controller / netconf / tcp / osgi / NetconfTCPActivator.java
index bc94e596d77ceabd53667c5a9ab74a2928f74fff..355041f8dfffb74efb120cc99b9b9e077cc0b26e 100644 (file)
@@ -22,22 +22,22 @@ import org.slf4j.LoggerFactory;
  * Opens TCP port specified in config.ini, creates bridge between this port and local netconf server.
  */
 public class NetconfTCPActivator implements BundleActivator {
-    private static final Logger logger = LoggerFactory.getLogger(NetconfTCPActivator.class);
+    private static final Logger LOG = LoggerFactory.getLogger(NetconfTCPActivator.class);
     private ProxyServer proxyServer;
 
     @Override
     public void start(BundleContext context) {
         final Optional<InetSocketAddress> maybeAddress = NetconfConfigUtil.extractNetconfServerAddress(context, InfixProp.tcp);
         if (maybeAddress.isPresent() == false) {
-            logger.debug("Netconf tcp server is not configured to start");
+            LOG.debug("Netconf tcp server is not configured to start");
             return;
         }
         InetSocketAddress address = maybeAddress.get();
         if (address.getAddress().isAnyLocalAddress()) {
-            logger.warn("Unprotected netconf TCP address is configured to ANY local address. This is a security risk. " +
-                    "Consider changing {} to 127.0.0.1", NetconfConfigUtil.getNetconfServerAddressKey(InfixProp.tcp));
+            LOG.warn("Unprotected netconf TCP address is configured to ANY local address. This is a security risk. Consider changing {} to 127.0.0.1",
+                    NetconfConfigUtil.getNetconfServerAddressKey(InfixProp.tcp));
         }
-        logger.info("Starting TCP netconf server at {}", address);
+        LOG.info("Starting TCP netconf server at {}", address);
         proxyServer = new ProxyServer(address, NetconfConfigUtil.getNetconfLocalAddress());
     }