diff options
author | 2019-09-18 19:35:30 +0530 | |
---|---|---|
committer | 2019-09-18 19:35:35 +0530 | |
commit | f0ac0bd3a964f1d63d67b5333c7fac6960549f77 (patch) | |
tree | 50a86265b1e4a9e42b00de04549bb9adada207ed /auth/auth-cmd/src/main/java/org/onap | |
parent | 63d17a4c0bb0cfe76b5d1f703a9ce3ec02a52674 (diff) |
AAFcli.java-Merge the if statement with the existing one
AAFcli.java-Merge the if statement with the existing one
Issue-ID: AAF-876
Change-Id: I5bcb2f45f8210b519ca9667b8b17e20b110ab4ff
Signed-off-by: Thugutla sailakshmi <tsaila10@in.ibm.com>
Diffstat (limited to 'auth/auth-cmd/src/main/java/org/onap')
-rw-r--r-- | auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/AAFcli.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/AAFcli.java b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/AAFcli.java index 44d86d3c..bd8f1a52 100644 --- a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/AAFcli.java +++ b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/AAFcli.java @@ -215,8 +215,7 @@ public class AAFcli { } } else if ("expect".equalsIgnoreCase(largs[idx])) { expect.clear(); - if (largs.length > idx++) { - if (!"nothing".equals(largs[idx])) { + if ((largs.length > idx++)&&(!"nothing".equals(largs[idx]))) { for (String str : largs[idx].split(",")) { try { if ("Exception".equalsIgnoreCase(str)) { @@ -229,8 +228,7 @@ public class AAFcli { } } ++idx; - } - } + } continue; // Sleep, typically for reports, to allow DB to update // Milliseconds |