Removing the 'must be zero or positive' per Volker's comment on LANG-643

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@990663 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2010-08-29 22:37:52 +00:00
parent c544542bda
commit 1db9c37e95
1 changed files with 3 additions and 3 deletions

View File

@ -2028,7 +2028,7 @@ public class StringUtils {
* </pre>
*
* @param str the String to get the leftmost characters from, may be null
* @param len the length of the required String, must be zero or positive
* @param len the length of the required String
* @return the leftmost characters, <code>null</code> if null String input
*/
public static String left(String str, int len) {
@ -2061,7 +2061,7 @@ public class StringUtils {
* </pre>
*
* @param str the String to get the rightmost characters from, may be null
* @param len the length of the required String, must be zero or positive
* @param len the length of the required String
* @return the rightmost characters, <code>null</code> if null String input
*/
public static String right(String str, int len) {
@ -2099,7 +2099,7 @@ public class StringUtils {
*
* @param str the String to get the characters from, may be null
* @param pos the position to start from, negative treated as zero
* @param len the length of the required String, must be zero or positive
* @param len the length of the required String
* @return the middle characters, <code>null</code> if null String input
*/
public static String mid(String str, int pos, int len) {