You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Akira Ajisaka (JIRA)" <ji...@apache.org> on 2018/03/10 01:14:00 UTC

[jira] [Commented] (HADOOP-15305) Replace FileUtils.writeStringToFile(File, String) with (File, String, Charset) to fix deprecation warnings

    [ https://issues.apache.org/jira/browse/HADOOP-15305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16393920#comment-16393920 ] 

Akira Ajisaka commented on HADOOP-15305:
----------------------------------------

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: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org