Fix checkstyle if-statements must use braces ConnectionManagerNorthbound
[controller.git] / opendaylight / adsal / northbound / connectionmanager / src / main / java / org / opendaylight / controller / connectionmanager / northbound / ConnectionManagerNorthbound.java
index dde3210928689278af7d7f2e3103b0e78c114b47..3f64b07ab6d61dd52168c16e9f1739590cb5fd27 100644 (file)
@@ -62,7 +62,9 @@ public class ConnectionManagerNorthbound {
     }
     @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;