hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-7128) Reduced annoying catch clauses of UnsupportedEncodingException that is never thrown because of UTF-8
Date Thu, 08 Nov 2012 18:08:14 GMT

    [ https://issues.apache.org/jira/browse/HBASE-7128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13493352#comment-13493352
] 

stack commented on HBASE-7128:
------------------------------

[~ikeda] Thank you for doing this.

HConstants should not reference Bytes -- a class in top level package reference a subpackage
class (I don't mind double define of UTF8_ENCODING if you have to)

Otherwise, the patch is great.


                
> Reduced annoying catch clauses of UnsupportedEncodingException that is never thrown because
of UTF-8
> ----------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-7128
>                 URL: https://issues.apache.org/jira/browse/HBASE-7128
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Hiroshi Ikeda
>            Priority: Trivial
>             Fix For: 0.96.0
>
>         Attachments: HBASE-7128.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message