aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src
diff options
context:
space:
mode:
authorsharath reddy <bs.reddy@huawei.com>2022-03-30 19:39:35 +0530
committersharath reddy <bs.reddy@huawei.com>2022-03-30 19:40:43 +0530
commitdc4b0740991accbc1a8c1ab95ff2b981e7865fca (patch)
tree8774f311c1a94f294254918a4950585376785f87 /framework/src
parent4e4f047cf6533f0f01f54d5170a059c5bff5d054 (diff)
Removed thed use of deprecated "readFileToString"
Issue-ID: CLI-439 Signed-off-by: sharath reddy <bs.reddy@huawei.com> Change-Id: Id2a05e85c9c0e10983854b1049db4d42f4bf3dea
Diffstat (limited to 'framework/src')
-rw-r--r--framework/src/main/java/org/onap/cli/fw/utils/OnapCommandUtils.java3
1 files changed, 2 insertions, 1 deletions
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