Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-3288

Use static import for UTF-8

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.5.3, 1.6.2, 1.7.0
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              ctubbsii Christopher Tubbs
              ctubbsii Christopher Tubbs
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h