You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Christopher Tubbs (JIRA)" <ji...@apache.org> on 2014/11/01 06:03:34 UTC
[jira] [Resolved] (ACCUMULO-3288) Use static import for UTF-8
[ https://issues.apache.org/jira/browse/ACCUMULO-3288?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christopher Tubbs resolved ACCUMULO-3288.
-----------------------------------------
Resolution: Fixed
> Use static import for UTF-8
> ---------------------------
>
> Key: ACCUMULO-3288
> URL: https://issues.apache.org/jira/browse/ACCUMULO-3288
> Project: Accumulo
> Issue Type: Task
> Reporter: Christopher Tubbs
> Assignee: Christopher Tubbs
> Priority: Trivial
> Fix For: 1.5.3, 1.6.2, 1.7.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Since ACCUMULO-1545, there have been a lot of issues with merges between branches due to the UTF-8 constant change. These issues can be avoided by changing the code to statically import the UTF_8 constant from Guava's Charsets, Charset.forName("UTF-8"), or StandardCharsets, and just use that.
> That way, when somebody needs to specify the constant, they can just use {{UTF_8}} and merge cleanly without conflicts due to how it is being imported.
> This is a trivial task, with minimal long-term benefits, but I think it'd help save time merging other features. It will also make some long lines more readable.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)