You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ba...@apache.org on 2009/03/02 03:33:24 UTC
svn commit: r749151 -
/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java
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("", *) = ""