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

Improve documentation of Charsets class

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2
    • 2.3
    • Core
    • 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

            rgoers Ralph Goers
            rgoers Ralph Goers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: