From: Thanh Ha Date: Tue, 9 Dec 2014 22:54:26 +0000 (-0500) Subject: Fix checkstyle if-statements must use braces adsal/sal/connection X-Git-Tag: release/lithium~778^2~11 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=c2cde2ba31f306087aff328e87dbdd698267be04 Fix checkstyle if-statements must use braces adsal/sal/connection Change-Id: Ib08edee1ed589b1bcbbaa9b38054ed5c301bb49c Signed-off-by: Thanh Ha --- diff --git a/opendaylight/adsal/sal/connection/implementation/src/main/java/org/opendaylight/controller/sal/connection/implementation/internal/ConnectionService.java b/opendaylight/adsal/sal/connection/implementation/src/main/java/org/opendaylight/controller/sal/connection/implementation/internal/ConnectionService.java index 5a637b7999..c73607ae83 100644 --- a/opendaylight/adsal/sal/connection/implementation/src/main/java/org/opendaylight/controller/sal/connection/implementation/internal/ConnectionService.java +++ b/opendaylight/adsal/sal/connection/implementation/src/main/java/org/opendaylight/controller/sal/connection/implementation/internal/ConnectionService.java @@ -103,7 +103,9 @@ public class ConnectionService implements IPluginOutConnectionService, IConnecti @Override public ConnectionLocality getLocalityStatus(Node node) { - if (this.connectionListener == null) return ConnectionLocality.NOT_CONNECTED; + if (this.connectionListener == null) { + return ConnectionLocality.NOT_CONNECTED; + } return connectionListener.getLocalityStatus(node); } @@ -133,7 +135,9 @@ public class ConnectionService implements IPluginOutConnectionService, IConnecti @Override public Status disconnect(Node node) { IPluginInConnectionService s = pluginService.get(node.getType()); - if (s != null) return s.disconnect(node); + if (s != null) { + return s.disconnect(node); + } return new Status(StatusCode.NOTFOUND); }