From 9df5c4d3e3e7b72b54de212a4a97ef18e5930948 Mon Sep 17 00:00:00 2001 From: sharath reddy Date: Fri, 18 Mar 2022 20:11:27 +0530 Subject: Fixed Sonar Bugs & Vulnerabilities Issue-ID: CLI-439 Signed-off-by: sharath reddy Change-Id: Icbe3d40286d15b8b3639af7a7eb6c4e189169a3f Signed-off-by: sharath reddy --- .../src/main/java/org/onap/cli/fw/cmd/cmd/OpenCommandShellCmd.java | 2 +- .../main/java/org/onap/cli/fw/http/conf/OnapCommandHttpConstants.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'profiles') diff --git a/profiles/command/src/main/java/org/onap/cli/fw/cmd/cmd/OpenCommandShellCmd.java b/profiles/command/src/main/java/org/onap/cli/fw/cmd/cmd/OpenCommandShellCmd.java index 3bb2606a..632142af 100644 --- a/profiles/command/src/main/java/org/onap/cli/fw/cmd/cmd/OpenCommandShellCmd.java +++ b/profiles/command/src/main/java/org/onap/cli/fw/cmd/cmd/OpenCommandShellCmd.java @@ -211,7 +211,7 @@ public class OpenCommandShellCmd extends OnapCommand { this.getResult().setDebugInfo(pr.toString()); pr.run(); - } catch (Exception e) { + } catch (Exception e) {// NOSONAR throw new OnapCommandExecutionFailed(this.getName(), e); } finally { if (stdoutStream != null) { diff --git a/profiles/http/src/main/java/org/onap/cli/fw/http/conf/OnapCommandHttpConstants.java b/profiles/http/src/main/java/org/onap/cli/fw/http/conf/OnapCommandHttpConstants.java index 7ab7928d..9b616533 100644 --- a/profiles/http/src/main/java/org/onap/cli/fw/http/conf/OnapCommandHttpConstants.java +++ b/profiles/http/src/main/java/org/onap/cli/fw/http/conf/OnapCommandHttpConstants.java @@ -30,7 +30,7 @@ public class OnapCommandHttpConstants { public static final String HTTP_REQUEST_MANDATORY_PARAMS = "cli.schema.http.request.sections.mandatory"; public static final String HTTP_METHODS = "cli.schema.http.request.method.values"; //http connection - public static final String SSLCONTEST_TLS = "TLSV1.2"; + public static final String SSLCONTEST_TLS = "TLSv1.2"; public static final String APPLICATION_JSON = "application/json"; public static final String DEFAULT_PARAMETER_HTTP_FILE_NAME = "default_input_parameters_http.yaml"; public static final String DEAFULT_PARAMETER_USERNAME = "host-username"; -- cgit 1.2.3-korg