diff options
author | sharath reddy <bs.reddy@huawei.com> | 2022-03-30 20:20:37 +0530 |
---|---|---|
committer | sharath reddy <bs.reddy@huawei.com> | 2022-03-30 20:21:29 +0530 |
commit | cab52cb39bb93e512d43d676be5f187b8d693798 (patch) | |
tree | 595a354df84b42c2fc630ef8c6b9e2a36993de3a | |
parent | 4e4f047cf6533f0f01f54d5170a059c5bff5d054 (diff) |
Removed the use of deprecated "toString"
Issue-ID: CLI-439
Signed-off-by: sharath reddy <bs.reddy@huawei.com>
Change-Id: Ide23136cd026c905d661770700c6308d62eaf964
-rw-r--r-- | main/src/main/java/org/onap/cli/main/OnapCli.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/main/java/org/onap/cli/main/OnapCli.java b/main/src/main/java/org/onap/cli/main/OnapCli.java index ee9c7b33..08ef640f 100644 --- a/main/src/main/java/org/onap/cli/main/OnapCli.java +++ b/main/src/main/java/org/onap/cli/main/OnapCli.java @@ -17,6 +17,7 @@ package org.onap.cli.main; import java.io.IOException; +import java.nio.charset.Charset; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; @@ -189,7 +190,7 @@ public class OnapCli { public void handleHelp() { try { if (this.printHelp) { - this.print(IOUtils.toString(this.getClass().getClassLoader().getResourceAsStream("oclip-readme.txt"))); + this.print(IOUtils.toString(this.getClass().getClassLoader().getResourceAsStream("oclip-readme.txt") , (Charset) null)); String help = OnapCommandRegistrar.getRegistrar().getHelp(); this.print(help); this.exitSuccessfully(); |