hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sahil Kang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MAPREDUCE-6730) Use StandardCharsets instead of String overload
Date Mon, 11 Jul 2016 04:16:10 GMT
Sahil Kang created MAPREDUCE-6730:

             Summary: Use StandardCharsets instead of String overload
                 Key: MAPREDUCE-6730
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6730
             Project: Hadoop Map/Reduce
          Issue Type: Improvement
            Reporter: Sahil Kang
            Priority: Minor

In TextOutputFormat.java, instead of:
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");

Let's do something like:
private static final byte[] newline = "\n".getBytes(StandardCharsets.UTF_8);

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: mapreduce-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: mapreduce-issues-help@hadoop.apache.org

View raw message