commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r922909 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
Date Sun, 14 Mar 2010 17:37:07 GMT
Author: ggregory
Date: Sun Mar 14 17:37:07 2010
New Revision: 922909

URL: http://svn.apache.org/viewvc?rev=922909&view=rev
Log:
Javadoc.

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=922909&r1=922908&r2=922909&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 Sun
Mar 14 17:37:07 2010
@@ -5383,12 +5383,12 @@ public class StringUtils {
      * StringUtils.defaultIfEmpty("bat", "NULL") = "bat"
      * StringUtils.defaultIfEmpty("", null)      = null
      * </pre>
-     *
-     * @see StringUtils#defaultString(String, String)
+     * @param <T> the specific kind of CharSequence
      * @param str  the CharSequence to check, may be null
      * @param defaultStr  the default CharSequence to return
      *  if the input is empty ("") or <code>null</code>, may be null
      * @return the passed in CharSequence, or the default
+     * @see StringUtils#defaultString(String, String)
      */
     public static <T extends CharSequence> T defaultIfEmpty(T str, T defaultStr) {
         return StringUtils.isEmpty(str) ? defaultStr : str;



Mime
View raw message