Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 45745 invoked from network); 30 Jun 2009 06:34:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Jun 2009 06:34:13 -0000 Received: (qmail 17879 invoked by uid 500); 30 Jun 2009 06:34:24 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 17775 invoked by uid 500); 30 Jun 2009 06:34:23 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 17766 invoked by uid 99); 30 Jun 2009 06:34:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jun 2009 06:34:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jun 2009 06:34:21 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id CC81A23888CC; Tue, 30 Jun 2009 06:34:01 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r789575 - /commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java Date: Tue, 30 Jun 2009 06:34:01 -0000 To: commits@commons.apache.org From: bayard@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090630063401.CC81A23888CC@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bayard Date: Tue Jun 30 06:34:01 2009 New Revision: 789575 URL: http://svn.apache.org/viewvc?rev=789575&view=rev Log: Moving a few of the StringUtils methods over to accepting CharSequence instead of String as part of LANG-510 Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java?rev=789575&r1=789574&r2=789575&view=diff ============================================================================== --- commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java (original) +++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java Tue Jun 30 06:34:01 2009 @@ -188,7 +188,7 @@ * @param str the String to check, may be null * @return true if the String is empty or null */ - public static boolean isEmpty(String str) { + public static boolean isEmpty(CharSequence str) { return str == null || str.length() == 0; } @@ -206,7 +206,7 @@ * @param str the String to check, may be null * @return true if the String is not empty and not null */ - public static boolean isNotEmpty(String str) { + public static boolean isNotEmpty(CharSequence str) { return !StringUtils.isEmpty(str); } @@ -225,7 +225,7 @@ * @return true if the String is null, empty or whitespace * @since 2.0 */ - public static boolean isBlank(String str) { + public static boolean isBlank(CharSequence str) { int strLen; if (str == null || (strLen = str.length()) == 0) { return true; @@ -254,7 +254,7 @@ * not empty and not null and not whitespace * @since 2.0 */ - public static boolean isNotBlank(String str) { + public static boolean isNotBlank(CharSequence str) { return !StringUtils.isBlank(str); }