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] [Created] (ACCUMULO-3288) Use static import for UTF-8
Date Fri, 31 Oct 2014 23:47:33 GMT
Christopher Tubbs created ACCUMULO-3288:
-------------------------------------------

             Summary: 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


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)

Mime
View raw message