From: Thanh Ha Date: Tue, 9 Dec 2014 22:55:35 +0000 (-0500) Subject: Fix checkstyle if-statements must use braces adsal/protocol_plugins X-Git-Tag: release/lithium~778^2~10 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=d15bc4a6a100181e39f5bc1514fa73cb270a6c95;ds=sidebyside Fix checkstyle if-statements must use braces adsal/protocol_plugins Change-Id: I2110c4623f141e738b368d0bce0695ebc98809ff Signed-off-by: Thanh Ha --- diff --git a/opendaylight/adsal/protocol_plugins/stub/src/main/java/org/opendaylight/controller/protocol_plugins/stub/internal/StubNodeFactory.java b/opendaylight/adsal/protocol_plugins/stub/src/main/java/org/opendaylight/controller/protocol_plugins/stub/internal/StubNodeFactory.java index c5a9de3032..439519fa41 100644 --- a/opendaylight/adsal/protocol_plugins/stub/src/main/java/org/opendaylight/controller/protocol_plugins/stub/internal/StubNodeFactory.java +++ b/opendaylight/adsal/protocol_plugins/stub/src/main/java/org/opendaylight/controller/protocol_plugins/stub/internal/StubNodeFactory.java @@ -11,45 +11,44 @@ import org.opendaylight.controller.sal.core.ConstructionException; import org.opendaylight.controller.sal.utils.INodeFactory; import org.opendaylight.controller.sal.core.Node; -public class StubNodeFactory implements INodeFactory - { - void init() { - } +public class StubNodeFactory implements INodeFactory { + void init() { + } - /** - * Function called by the dependency manager when at least one dependency - * become unsatisfied or when the component is shutting down because for - * example bundle is being stopped. - * - */ - void destroy() { - } + /** + * Function called by the dependency manager when at least one dependency + * become unsatisfied or when the component is shutting down because for + * example bundle is being stopped. + * + */ + void destroy() { + } - /** - * Function called by dependency manager after "init ()" is called and after - * the services provided by the class are registered in the service registry - * - */ - void start() { - } + /** + * Function called by dependency manager after "init ()" is called and after + * the services provided by the class are registered in the service registry + * + */ + void start() { + } - /** - * Function called by the dependency manager before the services exported by - * the component are unregistered, this will be followed by a "destroy ()" - * calls - * - */ - void stop() { - } + /** + * Function called by the dependency manager before the services exported by + * the component are unregistered, this will be followed by a "destroy ()" + * calls + * + */ + void stop() { + } - public Node fromString(String nodeType, String nodeId){ - if(nodeType.equals("STUB")) - try{ - return new Node("STUB", Integer.parseInt(nodeId)); - } catch(ConstructionException e) - { - return null; - } - return null; - } + public Node fromString(String nodeType, String nodeId){ + if(nodeType.equals("STUB")) { + try { + return new Node("STUB", Integer.parseInt(nodeId)); + } catch(ConstructionException e) { + return null; + } + } + return null; + } }