Adding javadoc per LANG-424 to point out what happens in substringLast/substringBefore methods when substring is not found
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@749151 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cb8a0d43ea
commit
4f3b802594
|
@ -1755,6 +1755,8 @@ public class StringUtils {
|
||||||
* An empty ("") string input will return the empty string.
|
* An empty ("") string input will return the empty string.
|
||||||
* A <code>null</code> separator will return the input string.</p>
|
* A <code>null</code> separator will return the input string.</p>
|
||||||
*
|
*
|
||||||
|
* <p>If nothing is found, the string input is returned.</p>
|
||||||
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* StringUtils.substringBefore(null, *) = null
|
* StringUtils.substringBefore(null, *) = null
|
||||||
* StringUtils.substringBefore("", *) = ""
|
* StringUtils.substringBefore("", *) = ""
|
||||||
|
@ -1795,6 +1797,8 @@ public class StringUtils {
|
||||||
* A <code>null</code> separator will return the empty string if the
|
* A <code>null</code> separator will return the empty string if the
|
||||||
* input string is not <code>null</code>.</p>
|
* input string is not <code>null</code>.</p>
|
||||||
*
|
*
|
||||||
|
* <p>If nothing is found, the empty string is returned.</p>
|
||||||
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* StringUtils.substringAfter(null, *) = null
|
* StringUtils.substringAfter(null, *) = null
|
||||||
* StringUtils.substringAfter("", *) = ""
|
* StringUtils.substringAfter("", *) = ""
|
||||||
|
@ -1834,6 +1838,8 @@ public class StringUtils {
|
||||||
* An empty ("") string input will return the empty string.
|
* An empty ("") string input will return the empty string.
|
||||||
* An empty or <code>null</code> separator will return the input string.</p>
|
* 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>
|
* <pre>
|
||||||
* StringUtils.substringBeforeLast(null, *) = null
|
* StringUtils.substringBeforeLast(null, *) = null
|
||||||
* StringUtils.substringBeforeLast("", *) = ""
|
* StringUtils.substringBeforeLast("", *) = ""
|
||||||
|
@ -1871,6 +1877,8 @@ public class StringUtils {
|
||||||
* An empty or <code>null</code> separator will return the empty string if
|
* An empty or <code>null</code> separator will return the empty string if
|
||||||
* the input string is not <code>null</code>.</p>
|
* the input string is not <code>null</code>.</p>
|
||||||
*
|
*
|
||||||
|
* <p>If nothing is found, the empty string is returned.</p>
|
||||||
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* StringUtils.substringAfterLast(null, *) = null
|
* StringUtils.substringAfterLast(null, *) = null
|
||||||
* StringUtils.substringAfterLast("", *) = ""
|
* StringUtils.substringAfterLast("", *) = ""
|
||||||
|
|
Loading…
Reference in New Issue