Removed the use of deprecated "toString" 10/128210/1
authorsharath reddy <bs.reddy@huawei.com>
Wed, 30 Mar 2022 14:50:37 +0000 (20:20 +0530)
committersharath reddy <bs.reddy@huawei.com>
Wed, 30 Mar 2022 14:51:29 +0000 (20:21 +0530)
Issue-ID: CLI-439

Signed-off-by: sharath reddy <bs.reddy@huawei.com>
Change-Id: Ide23136cd026c905d661770700c6308d62eaf964

main/src/main/java/org/onap/cli/main/OnapCli.java

index ee9c7b3..08ef640 100644 (file)
@@ -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();