From dc4b0740991accbc1a8c1ab95ff2b981e7865fca Mon Sep 17 00:00:00 2001 From: sharath reddy Date: Wed, 30 Mar 2022 19:39:35 +0530 Subject: Removed thed use of deprecated "readFileToString" Issue-ID: CLI-439 Signed-off-by: sharath reddy Change-Id: Id2a05e85c9c0e10983854b1049db4d42f4bf3dea --- framework/src/main/java/org/onap/cli/fw/utils/OnapCommandUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'framework/src') diff --git a/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandUtils.java b/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandUtils.java index dab6669c..acf44a9b 100644 --- a/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandUtils.java +++ b/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandUtils.java @@ -22,6 +22,7 @@ import static org.onap.cli.fw.conf.OnapCommandConstants.IS_INCLUDE; import java.io.File; import java.io.IOException; +import java.nio.charset.Charset; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; @@ -270,7 +271,7 @@ public class OnapCommandUtils { //start to read after file:filepath String fileName = splEntry.substring(5); try { - value = FileUtils.readFileToString(new File(fileName)); + value = FileUtils.readFileToString((new File(fileName)), (Charset) null); } catch (IOException e) { //when file is not found, assign the same file:FILE_PATH //so that it will given hit to user that FILE_PATH to be -- cgit 1.2.3-korg