aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/main
diff options
context:
space:
mode:
authorKanagaraj Manickam <kanagaraj.manickam@huawei.com>2022-03-31 04:07:30 +0000
committerGerrit Code Review <gerrit@onap.org>2022-03-31 04:07:30 +0000
commitb5c3467d488875f73bd28b77b1c531c0f39e1678 (patch)
treec0ffdea045283e663ea85fe05a9fb4a429843c40 /framework/src/main
parent404356a7404acc06e71f30c475b9f6eff2075b38 (diff)
parentdc4b0740991accbc1a8c1ab95ff2b981e7865fca (diff)
Merge "Removed thed use of deprecated "readFileToString""
Diffstat (limited to 'framework/src/main')
-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