aboutsummaryrefslogtreecommitdiffstats
path: root/profiles/command/src/main
diff options
context:
space:
mode:
authorsharath reddy <bs.reddy@huawei.com>2022-03-31 21:58:21 +0530
committersharath reddy <bs.reddy@huawei.com>2022-03-31 21:59:44 +0530
commit47f1355a137634d9794706e95d317f80d37c8fcf (patch)
tree45d87fba67a663d22a8033f4bd034061b87b6f95 /profiles/command/src/main
parentb2aeb4fae1c300d0073b8291e7a5f11bc53d3043 (diff)
Removed the deprecated usage of writeStringToFile
Issue-ID: CLI-439 report: tested weather-report Signed-off-by: sharath reddy <bs.reddy@huawei.com> Change-Id: Ia102738354bd1ddc46a0d1397a9a9431ed162f96
Diffstat (limited to 'profiles/command/src/main')
-rw-r--r--profiles/command/src/main/java/org/onap/cli/fw/cmd/cmd/OpenCommandShellCmd.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/profiles/command/src/main/java/org/onap/cli/fw/cmd/cmd/OpenCommandShellCmd.java b/profiles/command/src/main/java/org/onap/cli/fw/cmd/cmd/OpenCommandShellCmd.java
index 632142af..3bbdcf6f 100644
--- a/profiles/command/src/main/java/org/onap/cli/fw/cmd/cmd/OpenCommandShellCmd.java
+++ b/profiles/command/src/main/java/org/onap/cli/fw/cmd/cmd/OpenCommandShellCmd.java
@@ -20,6 +20,7 @@ import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
+import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
@@ -328,7 +329,7 @@ public class OpenCommandShellCmd extends OnapCommand {
try {
FileUtils.touch(new File(tmpFilePath));
FileUtils.writeStringToFile(new File(tmpFilePath),
- this.getParametersMap().get(paramName).getValue().toString());
+ this.getParametersMap().get(paramName).getValue().toString(), (Charset) null);
} catch (IOException e) {
// NO SONAR
}