From 69107f6df68cdb055d4a4b52c29930a4ecfacb40 Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Tue, 9 Dec 2014 17:58:29 -0500 Subject: [PATCH] Fix checkstyle if-statements must use braces adsal/northbound/staticrouting Change-Id: I1a12ee8523e948af752c5fb2627a8567c99ed9e5 Signed-off-by: Thanh Ha --- .../staticrouting/northbound/StaticRoutingNorthbound.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opendaylight/adsal/northbound/staticrouting/src/main/java/org/opendaylight/controller/forwarding/staticrouting/northbound/StaticRoutingNorthbound.java b/opendaylight/adsal/northbound/staticrouting/src/main/java/org/opendaylight/controller/forwarding/staticrouting/northbound/StaticRoutingNorthbound.java index 20f6cb40a5..de291d6d96 100644 --- a/opendaylight/adsal/northbound/staticrouting/src/main/java/org/opendaylight/controller/forwarding/staticrouting/northbound/StaticRoutingNorthbound.java +++ b/opendaylight/adsal/northbound/staticrouting/src/main/java/org/opendaylight/controller/forwarding/staticrouting/northbound/StaticRoutingNorthbound.java @@ -88,7 +88,9 @@ public class StaticRoutingNorthbound { @Context public void setSecurityContext(SecurityContext context) { - if (context != null && context.getUserPrincipal() != null) username = context.getUserPrincipal().getName(); + if (context != null && context.getUserPrincipal() != null) { + username = context.getUserPrincipal().getName(); + } } protected String getUserName() { return username; -- 2.36.6