[
https://issues.apache.org/jira/browse/HADOOP-15305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16393920#comment-16393920
]
Akira Ajisaka edited comment on HADOOP-15305 at 3/10/18 1:13 AM:
-----------------------------------------------------------------
FYI: For Charsets, {{StandardCharsets.UTF-8}} is better than
{{Charset.forName("UTF-8")}} because we don't need to write a code to catch and
ignore UnsupportedCharsetException.
was (Author: ajisakaa):
FYI: For Charsets, {{StandardCharsets.UTF-8}} is better than
{{Charset.forName("UTF-8")}} because we don't need to ignore
UnsupportedCharsetException.
> Replace FileUtils.writeStringToFile(File, String) with (File, String,
> Charset) to fix deprecation warnings
> ----------------------------------------------------------------------------------------------------------
>
> Key: HADOOP-15305
> URL: https://issues.apache.org/jira/browse/HADOOP-15305
> Project: Hadoop Common
> Issue Type: Bug
> Reporter: Akira Ajisaka
> Priority: Minor
> Labels: newbie
>
> FileUtils.writeStringToFile(File, String) relies on default charset and
> should be replaced with FileUtils.writeStringToFile(File, String, Charset).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]