Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-995

Improve documentation of Charsets class

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.3
    • Component/s: Core
    • Labels:
      None

      Description

      The javadoc for org.apache.logging.log4j.core.util.Charsets gives the impression that the class was somehow copied from code in the JDK. In reviewing the code it is clear that the purpose of the class was to make a version of the charset constants defined in Java 7 and beyond available in Java 6. As such, the names of the constants will necessarily be similar and there is only one reasonable way to initialize them.

      The javadoc should be changed to make it clear what the purpose of the class is and identify the constants as a reference to the StandardCharsets class.

        Attachments

          Activity

            People

            • Assignee:
              ralph.goers@dslextreme.com Ralph Goers
              Reporter:
              ralph.goers@dslextreme.com Ralph Goers
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: