Fix checkstyle if-statements must use braces adsal/northbound/staticrouting
[controller.git] / opendaylight / adsal / northbound / staticrouting / src / main / java / org / opendaylight / controller / forwarding / staticrouting / northbound / StaticRoutingNorthbound.java
index 20f6cb40a56cb812fa5370a5dd01cc6bf2ef85e8..de291d6d9647c6536558c91fc246c3cab75ac3a9 100644 (file)
@@ -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;