Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-7128

Reduce annoying catch clauses of UnsupportedEncodingException that is never thrown because of UTF-8

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 0.95.0
    • None
    • None
    • Reviewed

    Description

      There are some codes that catch UnsupportedEncodingException, and log or ignore it because Java always supports UTF-8 (see the javadoc of Charset).

      The catch clauses are annoying, and they should be replaced by methods of Bytes.

      Attachments

        1. 7128-addendum.txt
          0.9 kB
          Ted Yu
        2. HBASE-7128.patch
          20 kB
          Hiroshi Ikeda
        3. HBASE-7128-V2.patch
          23 kB
          Hiroshi Ikeda

        Activity

          People

            ikeda Hiroshi Ikeda
            ikeda Hiroshi Ikeda
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: