commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pascal Schumacher (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LANG-1226) StringUtils#normalizeSpace does not trim the string anymore
Date Sun, 08 May 2016 18:12:12 GMT

     [ https://issues.apache.org/jira/browse/LANG-1226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pascal Schumacher updated LANG-1226:
------------------------------------
    Description: 
These work with 3.3.2, but fail with 3.4:

{code}
assertEquals("b", StringUtils.normalizeSpace("\u0000b"));
assertEquals("b", StringUtils.normalizeSpace("b\u0000"));
{code}

Java doc still says "... Additionally #trim(String)} removes control characters (char &lt;=
32) from both ends of this String."

  was:
These work with 3.3.2, but fail with 3.4:

{code}
assertEquals("b", StringUtils.normalizeSpace("\u0000b"));
assertEquals("b", StringUtils.normalizeSpace("b\u0000"));
{code}

Java doc still says "... Additionally <code>{@link #trim(String)}</code> removes
control characters (char &lt;= 32) from both ends of this String."


> StringUtils#normalizeSpace does not trim the string anymore
> -----------------------------------------------------------
>
>                 Key: LANG-1226
>                 URL: https://issues.apache.org/jira/browse/LANG-1226
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 3.4
>            Reporter: Pascal Schumacher
>
> These work with 3.3.2, but fail with 3.4:
> {code}
> assertEquals("b", StringUtils.normalizeSpace("\u0000b"));
> assertEquals("b", StringUtils.normalizeSpace("b\u0000"));
> {code}
> Java doc still says "... Additionally #trim(String)} removes control characters (char
&lt;= 32) from both ends of this String."



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message