Merge "Add curly braces to if/else statements. (sonar)"
authorAlessandro Boch <aboch@cisco.com>
Wed, 11 Sep 2013 01:30:59 +0000 (01:30 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 11 Sep 2013 01:30:59 +0000 (01:30 +0000)
1  2 
opendaylight/connectionmanager/implementation/src/main/java/org/opendaylight/controller/connectionmanager/internal/ConnectionManager.java

@@@ -359,11 -362,13 +362,13 @@@ public class ConnectionManager implemen
          try {
              InetAddress address = InetAddress.getByName(controller);
              ci.println("Nodes connected to controller "+controller);
-             if (this.getNodes(address) == null) ci.println("None");
-             else ci.println(this.getNodes(address).toString());
-             return;
+             if (this.getNodes(address) == null) {
+                 ci.println("None");
+             } else {
+                 ci.println(this.getNodes(address).toString());
+             }
          } catch (UnknownHostException e) {
 -            e.printStackTrace();
 +           logger.error("An error occured",e);
          }
      }
  

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.