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