diff options
author | sharath reddy <bs.reddy@huawei.com> | 2022-03-30 20:39:49 +0530 |
---|---|---|
committer | sharath reddy <bs.reddy@huawei.com> | 2022-03-30 20:40:33 +0530 |
commit | 8d2c3accf80cf412a99c16e8ad8c4da20c8e19e2 (patch) | |
tree | 28ca92028909bdff0cbdaa62cc10fd18e017e5e3 /main | |
parent | 4e4f047cf6533f0f01f54d5170a059c5bff5d054 (diff) |
Removed thed use of deprecated "readFileToString"
Issue-ID: CLI-439
Signed-off-by: sharath reddy <bs.reddy@huawei.com>
Change-Id: Ia3bb90320ac98bb375713db99c7d543e8a9fcc30
Diffstat (limited to 'main')
-rw-r--r-- | main/src/main/java/org/onap/cli/main/utils/OnapCliArgsParser.java | 5 |
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; |