aboutsummaryrefslogtreecommitdiffstats
path: root/main/src
diff options
context:
space:
mode:
authorKanagaraj Manickam <kanagaraj.manickam@huawei.com>2022-03-31 04:06:06 +0000
committerGerrit Code Review <gerrit@onap.org>2022-03-31 04:06:06 +0000
commit91057235efcdae56fcd57a0be2b3abc9d5ce3638 (patch)
tree60c26d7817fa6275c24555d62b7bfe3398d52a39 /main/src
parent1a7ee6142b8b222780d4cd824ad03f681b686de2 (diff)
parent8d2c3accf80cf412a99c16e8ad8c4da20c8e19e2 (diff)
Merge "Removed thed use of deprecated "readFileToString""
Diffstat (limited to 'main/src')
-rw-r--r--main/src/main/java/org/onap/cli/main/utils/OnapCliArgsParser.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/main/java/org/onap/cli/main/utils/OnapCliArgsParser.java b/main/src/main/java/org/onap/cli/main/utils/OnapCliArgsParser.java
index d0885def..53e90661 100644
--- a/main/src/main/java/org/onap/cli/main/utils/OnapCliArgsParser.java
+++ b/main/src/main/java/org/onap/cli/main/utils/OnapCliArgsParser.java
@@ -19,6 +19,7 @@ package org.onap.cli.main.utils;
import java.io.File;
import java.io.IOException;
import java.net.URL;
+import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
@@ -224,7 +225,7 @@ public class OnapCliArgsParser {
try {
File file = new File(input);
if (file.isFile()) {
- return FileUtils.readFileToString(file);
+ return FileUtils.readFileToString(file, (Charset) null);
} else {
return input;
}
@@ -238,7 +239,7 @@ public class OnapCliArgsParser {
try {
File file = new File(input);
if (file.isFile()) {
- String value = FileUtils.readFileToString(file);
+ String value = FileUtils.readFileToString(file, (Charset) null);
YamlReader reader = new YamlReader(value);
value = (String) reader.read();
return value;