commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r899242 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
Date Thu, 14 Jan 2010 15:37:42 GMT
Author: sebb
Date: Thu Jan 14 15:37:42 2010
New Revision: 899242

URL: http://svn.apache.org/viewvc?rev=899242&view=rev
Log:
LANG-581 - Javadoc bug in org.apache.commons.lang.StringUtils.removeEndIgnoreCase()
Add some case-insensitive examples

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java?rev=899242&r1=899241&r2=899242&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java Thu
Jan 14 15:37:42 2010
@@ -3473,13 +3473,15 @@
      * A <code>null</code> search string will return the source string.</p>
      *
      * <pre>
-     * StringUtils.removeEnd(null, *)      = null
-     * StringUtils.removeEnd("", *)        = ""
-     * StringUtils.removeEnd(*, null)      = *
-     * StringUtils.removeEnd("www.domain.com", ".com.")  = "www.domain.com"
-     * StringUtils.removeEnd("www.domain.com", ".com")   = "www.domain"
-     * StringUtils.removeEnd("www.domain.com", "domain") = "www.domain.com"
-     * StringUtils.removeEnd("abc", "")    = "abc"
+     * StringUtils.removeEndEndIgnoreCase(null, *)      = null
+     * StringUtils.removeEndEndIgnoreCase("", *)        = ""
+     * StringUtils.removeEndEndIgnoreCase(*, null)      = *
+     * StringUtils.removeEndEndIgnoreCase("www.domain.com", ".com.")  = "www.domain.com"
+     * StringUtils.removeEndEndIgnoreCase("www.domain.com", ".com")   = "www.domain"
+     * StringUtils.removeEndEndIgnoreCase("www.domain.com", "domain") = "www.domain.com"
+     * StringUtils.removeEndEndIgnoreCase("abc", "")    = "abc"
+     * StringUtils.removeEndIgnoreCase("www.domain.com", ".COM") = "www.domain")
+     * StringUtils.removeEndIgnoreCase("www.domain.COM", ".com") = "www.domain")
      * </pre>
      *
      * @param str  the source String to search, may be null



Mime
View raw message