[ https://issues.apache.org/jira/browse/MAPREDUCE-6730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15407603#comment-15407603 ]
Hudson commented on MAPREDUCE-6730: ----------------------------------- SUCCESS: Integrated in Hadoop-trunk-Commit #10213 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/10213/]) MAPREDUCE-6730. Use StandardCharsets instead of String overload in (aajisaka: rev 70c278115249898132490a89a548fd936c09f54b) * hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/TextOutputFormat.java * hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/lib/output/TextOutputFormat.java > Use StandardCharsets instead of String overload in TextOutputFormat > ------------------------------------------------------------------- > > Key: MAPREDUCE-6730 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-6730 > Project: Hadoop Map/Reduce > Issue Type: Improvement > Reporter: Sahil Kang > Assignee: Sahil Kang > Priority: Minor > Fix For: 2.8.0, 3.0.0-alpha2 > > > In TextOutputFormat.java, instead of: > {code:java} > private static final String utf8 = "UTF-8"; > private static final byte[] newline; > static { > try { > newline = "\n".getBytes(utf8); > } catch (UnsupportedException uee) { > threw new IllegalArgumentException("can't find " + utf8 + " encoding"); > } > } > {code} > Let's do something like: > {code:java} > private static final byte[] newline = "\n".getBytes(StandardCharsets.UTF_8); > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: mapreduce-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: mapreduce-issues-h...@hadoop.apache.org