accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Tubbs (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-4131) Use static imports for UTF_8 when possible
Date Wed, 03 Feb 2016 07:17:39 GMT

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

Christopher Tubbs commented on ACCUMULO-4131:
---------------------------------------------

I know we did this before, but it looks like some stuff worked its way in over time.
We might be able to help with some of this using clever checkstyle rules, but it may not be
worth the time, once ACCUMULO-4046 is complete.

> Use static imports for UTF_8 when possible
> ------------------------------------------
>
>                 Key: ACCUMULO-4131
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-4131
>             Project: Accumulo
>          Issue Type: Sub-task
>          Components: build
>            Reporter: Christopher Tubbs
>            Assignee: Christopher Tubbs
>            Priority: Trivial
>             Fix For: 1.6.5, 1.7.1, 1.8.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> To limit the impact of changing Java versions, and modernizing code, we should use static
imports for UTF_8 Charset. In 1.6 branch, if guava is not a dependency, a private static final
constant could be used with Charset.forName("UTF-8").
> This will ensure usages of UTF_8 will merge more easily between branches and replacing
outdated means of referencing UTF_8 charset.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message