X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fprotocol_plugins%2Fopenflow%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fprotocol_plugin%2Fopenflow%2Fcore%2Finternal%2FControllerIO.java;fp=opendaylight%2Fprotocol_plugins%2Fopenflow%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fprotocol_plugin%2Fopenflow%2Fcore%2Finternal%2FControllerIO.java;h=868e2086511b5cd7926ccb08275cbda6bb270c9d;hp=a4b75843376071ba402729f63e591c2e7bb0b7fe;hb=d4526d295217d6d6d60434e179a2a78c1b2eb52b;hpb=f9c1698f289be1cc34eaf1fffd887ffc632a9d65 diff --git a/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/core/internal/ControllerIO.java b/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/core/internal/ControllerIO.java index a4b7584337..868e208651 100644 --- a/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/core/internal/ControllerIO.java +++ b/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/core/internal/ControllerIO.java @@ -1,4 +1,3 @@ - /* * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. * @@ -40,8 +39,8 @@ public class ControllerIO { try { openFlowPort = Short.decode(portString).shortValue(); } catch (NumberFormatException e) { - logger.warn("Invalid port:" + portString + ", use default(" - + openFlowPort + ")"); + logger.warn("Invalid port:{}, use default({})", portString, + openFlowPort); } } } @@ -72,8 +71,8 @@ public class ControllerIO { SelectionKey skey = selectedKeys.next(); selectedKeys.remove(); if (skey.isValid() && skey.isAcceptable()) { - ((Controller) listener).handleNewConnection(selector, - serverSelectionKey); + ((Controller) listener).handleNewConnection( + selector, serverSelectionKey); } } } catch (Exception e) { @@ -83,7 +82,7 @@ public class ControllerIO { } }, "ControllerI/O Thread"); controllerIOThread.start(); - logger.info("Controller is now listening on port " + openFlowPort); + logger.info("Controller is now listening on port {}", openFlowPort); } public void shutDown() throws IOException {