Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-18957

Use StandardCharsets.UTF_8 constant

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • common
    • Reviewed

    Description

      • there are some places in the code that have to check for UnsupportedCharsetException when explicitly using the charset name "UTF-8"
      • using StandardCharsets.UTF_8 is more efficient because the Java libs usually have to look up the charsets when you provide it as String param instead
      • also stop using Guava Charsets and use StandardCharsets

      Attachments

        Issue Links

          Activity

            People

              pj.fanning PJ Fanning
              fanningpj PJ Fanning
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: