Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-228

[lang] Improved tests, javadoc for CharSetUtils, StringEscapeUtils

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.0
    • None
    • None
    • Operating System: other
      Platform: Other

    • 21952

    Description

      The attached patch improves test coverage for CharSetUtils and StringEscapeUtils
      (mostly "" and null-related) and fixes a minor javadoc error in
      CharSetUtils.translate.

      Currently, charSetUtils.translate throws ArrayOutOfBoundsException if the repl
      string has positive length, but the with string is empty. The tests and javadoc
      change in the patch just document this behavior. It might make sense to either
      throw something else in this situation or to modify the behavior.

      Attachments

        Activity

          People

            Unassigned Unassigned
            phil@steitz.com Phil Steitz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: