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

Peter Somogyi commented on HBASE-22199:
---------------------------------------

Sorry for the late reply.

I agree that using StandardCharsets.UTF_8 instead of "UTF-8" is better, 
however, using Bytes.toBytes(myString) in the background does the same. [1] I 
recommended to use Bytes.toBytes since we already have it in many places around 
codebase.

[1] 
[https://github.com/apache/hbase/blob/master/hbase-common/src/main/java/org/apache/hadoop/hbase/util/Bytes.java#L726-L738]

> Replace "UTF-8" with StandardCharsets.UTF_8 where possible
> ----------------------------------------------------------
>
>                 Key: HBASE-22199
>                 URL: https://issues.apache.org/jira/browse/HBASE-22199
>             Project: HBase
>          Issue Type: Task
>            Reporter: Jan Hentschel
>            Assignee: Jan Hentschel
>            Priority: Trivial
>
> Currently the String "UTF-8" is used in some places where 
> StandardCharsets.UTF_8 could be used. To make it easier to maintain, the 
> current usages of "UTF-8" as a String should be replaced with 
> StandardCharsets.UTF_8.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to