commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <>
Subject [lang] How to best address Bug 25454 - Part 2
Date Mon, 15 Dec 2003 01:52:32 GMT
It seems that the consensus is to just fix StringUtils.replaceChars(S,S,S),
so I have done so.

I have added a couple more unit tests to cover more of the Javadoc examples
and the example cited in the email thread.

Please note the following: the pre-fix unit tests asserted that if an input
string was not "modified" (in quotes since Java String are immutable), the
return String had to be the "same" (Assert.assertSame as opposed to
Assert.assertEquals). The current impl return a new string from the working
buffer even if no replace took place. The Javadoc contract does not specify
the old behavior or even hint at it, the only mention of returning the input
string is if it or the search chars are empty. Please let me know if you
think this is a problem.

Thank you,

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message