From b22c9a1b97d1224becc8e22f472dec8d7269a18c Mon Sep 17 00:00:00 2001 From: Thugutla sailakshmi Date: Mon, 28 Oct 2019 21:43:26 +0530 Subject: AAFcli.java-sonar fixes-moving string literal to left side Issue-ID: AAF-876 Change-Id: Iaf237197cdd5761fb8659cc6b9c39c53ddf04250 Signed-off-by: Thugutla sailakshmi --- auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/AAFcli.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'auth/auth-cmd/src/main') 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 2c084428..9de4e34c 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 @@ -549,15 +549,15 @@ public class AAFcli { while ((line = reader.readLine()) != null) { showDetails = (line.contains("-d")); - if (line.equalsIgnoreCase("quit") || line.equalsIgnoreCase("q") || line.equalsIgnoreCase("exit")) { + if ("quit".equalsIgnoreCase(line) || "q".equalsIgnoreCase(line) || "exit".equalsIgnoreCase(line)) { break; - } else if (line.equalsIgnoreCase("--help -d") || line.equalsIgnoreCase("help -d") - || line.equalsIgnoreCase("help")) { + } else if ("--help -d".equalsIgnoreCase(line) || "help -d".equalsIgnoreCase(line) + || "help".equalsIgnoreCase(line)) { line = "--help"; - } else if (line.equalsIgnoreCase("cls")) { + } else if ("cls".equalsIgnoreCase(line)) { reader.clearScreen(); continue; - } else if (line.equalsIgnoreCase("?")) { + } else if ("?".equalsIgnoreCase(line)) { keyboardHelp(); continue; } -- cgit 1.2.3-korg