commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r989329 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
Date Wed, 25 Aug 2010 19:59:42 GMT
Author: bayard
Date: Wed Aug 25 19:59:41 2010
New Revision: 989329

URL: http://svn.apache.org/viewvc?rev=989329&view=rev
Log:
Fixing javadoc per LANG-643 to indicate an empty String is returned for negative length and
not a thrown exception

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=989329&r1=989328&r2=989329&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 Wed
Aug 25 19:59:41 2010
@@ -2016,7 +2016,7 @@ public class StringUtils {
      *
      * <p>If <code>len</code> characters are not available, or the
      * String is <code>null</code>, the String will be returned without
-     * an exception. An exception is thrown if len is negative.</p>
+     * an exception. An empty String is returned if len is negative.</p>
      *
      * <pre>
      * StringUtils.left(null, *)    = null
@@ -2049,7 +2049,7 @@ public class StringUtils {
      *
      * <p>If <code>len</code> characters are not available, or the String
      * is <code>null</code>, the String will be returned without an
-     * an exception. An exception is thrown if len is negative.</p>
+     * an exception. An empty String is returned if len is negative.</p>
      *
      * <pre>
      * StringUtils.right(null, *)    = null
@@ -2083,7 +2083,7 @@ public class StringUtils {
      * <p>If <code>len</code> characters are not available, the remainder
      * of the String will be returned without an exception. If the
      * String is <code>null</code>, <code>null</code> will be returned.
-     * An exception is thrown if len is negative.</p>
+     * An empty String is returned if len is negative.</p>
      *
      * <pre>
      * StringUtils.mid(null, *, *)    = null



Mime
View raw message