commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Fenderbosch (JIRA)" <>
Subject [jira] [Created] (LANG-700) Fix Javadoc for StringUtils.normalizeSpace
Date Fri, 20 May 2011 14:26:47 GMT
Fix Javadoc for StringUtils.normalizeSpace

                 Key: LANG-700
             Project: Commons Lang
          Issue Type: Task
          Components: lang.*
    Affects Versions: 2.6
            Reporter: Eric Fenderbosch
            Priority: Trivial

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.

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message