commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r749151 - /commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java
Date Mon, 02 Mar 2009 02:33:24 GMT
Author: bayard
Date: Mon Mar  2 02:33:24 2009
New Revision: 749151

URL: http://svn.apache.org/viewvc?rev=749151&view=rev
Log:
Adding javadoc per LANG-424 to point out what happens in substringLast/substringBefore methods
when substring is not found

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

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java?rev=749151&r1=749150&r2=749151&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java (original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java Mon Mar  2
02:33:24 2009
@@ -1755,6 +1755,8 @@
      * An empty ("") string input will return the empty string.
      * A <code>null</code> separator will return the input string.</p>
      *
+     * <p>If nothing is found, the string input is returned.</p>
+     *
      * <pre>
      * StringUtils.substringBefore(null, *)      = null
      * StringUtils.substringBefore("", *)        = ""
@@ -1795,6 +1797,8 @@
      * A <code>null</code> separator will return the empty string if the
      * input string is not <code>null</code>.</p>
      *
+     * <p>If nothing is found, the empty string is returned.</p>
+     *
      * <pre>
      * StringUtils.substringAfter(null, *)      = null
      * StringUtils.substringAfter("", *)        = ""
@@ -1834,6 +1838,8 @@
      * An empty ("") string input will return the empty string.
      * An empty or <code>null</code> separator will return the input string.</p>
      *
+     * <p>If nothing is found, the string input is returned.</p>
+     *
      * <pre>
      * StringUtils.substringBeforeLast(null, *)      = null
      * StringUtils.substringBeforeLast("", *)        = ""
@@ -1871,6 +1877,8 @@
      * An empty or <code>null</code> separator will return the empty string if
      * the input string is not <code>null</code>.</p>
      *
+     * <p>If nothing is found, the empty string is returned.</p>
+     *
      * <pre>
      * StringUtils.substringAfterLast(null, *)      = null
      * StringUtils.substringAfterLast("", *)        = ""



Mime
View raw message