Author: sebb
Date: Wed Dec 8 20:05:00 2010
New Revision: 1043650
URL: http://svn.apache.org/viewvc?rev=1043650&view=rev
Log:
LANG-666 Update Javadoc to make it clearer that the second parameter is the set
of characters to remove
Modified:
commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/StringUtils.java
Modified:
commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/StringUtils.java
URL:
http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/StringUtils.java?rev=1043650&r1=1043649&r2=1043650&view=diff
==============================================================================
---
commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/StringUtils.java
(original)
+++
commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/StringUtils.java
Wed Dec 8 20:05:00 2010
@@ -542,10 +542,11 @@ public class StringUtils {
* StringUtils.stripEnd("abc ", null) = "abc"
* StringUtils.stripEnd(" abc ", null) = " abc"
* StringUtils.stripEnd(" abcyx", "xyz") = " abc"
+ * StringUtils.stripEnd("120.00", ".0") = "12"
* </pre>
*
* @param str the String to remove characters from, may be null
- * @param stripChars the characters to remove, null treated as whitespace
+ * @param stripChars the set of characters to remove, null treated as
whitespace
* @return the stripped String, <code>null</code> if null String input
*/
public static String stripEnd(String str, String stripChars) {