Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 89616 invoked from network); 6 Feb 2008 19:33:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Feb 2008 19:33:07 -0000 Received: (qmail 41971 invoked by uid 500); 6 Feb 2008 19:32:57 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 41896 invoked by uid 500); 6 Feb 2008 19:32:57 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 41881 invoked by uid 99); 6 Feb 2008 19:32:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Feb 2008 11:32:57 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [216.82.254.227] (HELO mail202.messagelabs.com) (216.82.254.227) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Feb 2008 19:32:41 +0000 X-VirusChecked: Checked X-Env-Sender: GGregory@seagullsoftware.com X-Msg-Ref: server-7.tower-202.messagelabs.com!1202326348!2716300!1 X-StarScan-Version: 5.5.12.14.2; banners=-,-,- X-Originating-IP: [137.134.240.188] Received: (qmail 16846 invoked from network); 6 Feb 2008 19:32:29 -0000 Received: from unknown (HELO postal.rocketsoftware.com) (137.134.240.188) by server-7.tower-202.messagelabs.com with RC4-SHA encrypted SMTP; 6 Feb 2008 19:32:29 -0000 Received: from HQMAIL.rocketsoftware.com ([172.16.37.60]) by RS1062.rocketsoftware.com ([172.16.37.62]) with mapi; Wed, 6 Feb 2008 14:32:30 -0500 From: Gary Gregory To: "dev@commons.apache.org" , "commits@commons.apache.org" Date: Wed, 6 Feb 2008 14:34:26 -0500 Subject: RE: svn commit: r619115 - /commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java Thread-Topic: svn commit: r619115 - /commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java Thread-Index: Acho9lW93ZLUesjxRRqboTiPW1PgwAAANRwg Message-ID: <94C476C03BFF5E42AC3518FDAC9643C43C7D7F2A68@HQMAIL.rocketsoftware.com> References: <20080206192711.9B3FC1A983E@eris.apache.org> In-Reply-To: <20080206192711.9B3FC1A983E@eris.apache.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org What I meant to say in the commit comment was: Eat own dog food: Use EMPTY instead of "". Gary > -----Original Message----- > From: ggregory@apache.org [mailto:ggregory@apache.org] > Sent: Wednesday, February 06, 2008 11:27 AM > To: commits@commons.apache.org > Subject: svn commit: r619115 - > /commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.j= a > va > > Author: ggregory > Date: Wed Feb 6 11:27:10 2008 > New Revision: 619115 > > URL: http://svn.apache.org/viewvc?rev=3D619115&view=3Drev > Log: > Eat own dog food: > > Modified: > > commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.ja= v > a > > Modified: > commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.ja= v > a > URL: > http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apach > e/commons/lang/StringUtils.java?rev=3D619115&r1=3D619114&r2=3D619115&view= =3Ddiff > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D > --- > commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.ja= v > a (original) > +++ > commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.ja= v > a Wed Feb 6 11:27:10 2008 > @@ -2351,7 +2351,7 @@ > return ArrayUtils.EMPTY_STRING_ARRAY; > } > > - if ( ( separator =3D=3D null ) || ( "".equals( separator ) ) ) { > + if ( ( separator =3D=3D null ) || ( EMPTY.equals( separator ) ) = ) { > // Split on whitespace. > return splitWorker( str, null, max, preserveAllTokens ) ; > } > @@ -2391,7 +2391,7 @@ > end =3D len ; > substrings.add( str.substring( beg ) ) ; > } else { > - substrings.add( "" ); > + substrings.add( EMPTY ); > } > } > beg =3D end + separatorLength ; > @@ -3377,7 +3377,7 @@ > if (isEmpty(str) || isEmpty(remove)) { > return str; > } > - return replace(str, remove, "", -1); > + return replace(str, remove, EMPTY, -1); > } > > /** > @@ -3856,7 +3856,7 @@ > return str; > } > if (replaceChars =3D=3D null) { > - replaceChars =3D ""; > + replaceChars =3D EMPTY; > } > boolean modified =3D false; > int replaceCharsLength =3D replaceChars.length(); > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org