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

Fix Javadoc for StringUtils.normalizeSpace

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.6
    • 3.0
    • lang.*
    • None

    Description

      The Javadocs for StringUtils.normalizeSpace state:

      "The function returns the argument string with whitespace normalized by using trim(String) to remove leading and trailing whitespace and then replacing sequences of whitespace characters by a single space."

      Looking at the source code StringUtils.normalizeSpace actually uses strip, not trim. The difference is subtle, but should be corrected.

      Attachments

        Activity

          People

            Unassigned Unassigned
            efenderbosch Eric Fenderbosch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: