Merge "Moved null ref check to line before dereferencing"
[aaf/authz.git] / auth / auth-cmd / src / main / java / org / onap / aaf / auth / cmd / perm / ListByUser.java
index 550386c..00972a1 100644 (file)
@@ -51,15 +51,15 @@ public class ListByUser extends Cmd {
             @Override
             public Integer code(Rcli<?> client) throws CadiException, APIException {
                 StringBuilder sb = null;
-                if("true".equalsIgnoreCase(aafcli.forceString())) {
+                if ("true".equalsIgnoreCase(aafcli.forceString())) {
                     sb = new StringBuilder();
                     sb.append("?force");
                 }
-                if(aafcli.isDetailed()) {
-                    if(sb==null) {
-                        sb = new StringBuilder('?');
+                if (aafcli.isDetailed()) {
+                    if (sb==null) {
+                        sb = new StringBuilder("?");
                     } else {
-                        sb.append('&');
+                        sb.append("&");
                     }
                     sb.append("ns");
                 }