Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-5930

use StandardCharsets constants if possible

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.2SDK
    • None
    • None

    Description

      In some cases it is possible to replace charset strings with charset constants.

      There are two advantages in doing this:

      • If somebody introduces a typo in the constant name that will result in a compiler error
      • Error handling for the UnsupportedEncodingException can be removed

      Attachments

        1. uimaj-5930.patch
          33 kB
          Jörn Kottmann

        Activity

          People

            schor Marshall Schor
            joern Jörn Kottmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: