hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1617142 - /httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/TextUtils.java
Date Sun, 10 Aug 2014 18:54:06 GMT
Author: sebb
Date: Sun Aug 10 18:54:05 2014
New Revision: 1617142

URL: http://svn.apache.org/r1617142
Log:
Add basic Javadoc

Modified:
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/TextUtils.java

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/TextUtils.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/TextUtils.java?rev=1617142&r1=1617141&r2=1617142&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/TextUtils.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/TextUtils.java
Sun Aug 10 18:54:05 2014
@@ -32,6 +32,9 @@ package org.apache.http.util;
  */
 public final class TextUtils {
 
+    /**
+     * Returns true if the parameter is null or of zero length
+     */
     public static boolean isEmpty(final CharSequence s) {
         if (s == null) {
             return true;
@@ -39,6 +42,9 @@ public final class TextUtils {
         return s.length() == 0;
     }
 
+    /**
+     * Returns true if the parameter is null or contains only whitespace
+     */
     public static boolean isBlank(final CharSequence s) {
         if (s == null) {
             return true;



Mime
View raw message