hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akira Ajisaka (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HADOOP-15305) Replace FileUtils.writeStringToFile(File, String) with (File, String, Charset) to fix deprecation warnings
Date Sat, 10 Mar 2018 01:14:00 GMT

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


Mime
View raw message