From 43c637a04017dd80c95cba0618e16af6b8a1e612 Mon Sep 17 00:00:00 2001 From: sharath reddy Date: Wed, 30 Mar 2022 18:59:42 +0530 Subject: Removed the use of deprecated "toString" Issue-ID: CLI-439 Signed-off-by: sharath reddy Change-Id: I5a4124295c42f068689dd7c0004657bdd58902ca --- .../src/main/java/org/onap/cli/fw/registrar/OnapCommandRegistrar.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'framework/src/main/java/org/onap') diff --git a/framework/src/main/java/org/onap/cli/fw/registrar/OnapCommandRegistrar.java b/framework/src/main/java/org/onap/cli/fw/registrar/OnapCommandRegistrar.java index 28344def..912ea23d 100644 --- a/framework/src/main/java/org/onap/cli/fw/registrar/OnapCommandRegistrar.java +++ b/framework/src/main/java/org/onap/cli/fw/registrar/OnapCommandRegistrar.java @@ -17,6 +17,7 @@ package org.onap.cli.fw.registrar; import java.io.IOException; +import java.nio.charset.Charset; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -332,7 +333,7 @@ public class OnapCommandRegistrar { String versionInfo = ""; try { - versionInfo = IOUtils.toString(this.getClass().getClassLoader().getResourceAsStream(OnapCommandConstants.VERSION_INFO)); + versionInfo = IOUtils.toString((this.getClass().getClassLoader().getResourceAsStream(OnapCommandConstants.VERSION_INFO)), (Charset) null); } catch (IOException e) { // NOSONAR //Never occurs } -- cgit 1.2.3-korg