Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 9660 invoked from network); 6 Feb 2008 19:56:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Feb 2008 19:56:18 -0000 Received: (qmail 85661 invoked by uid 500); 6 Feb 2008 19:56:09 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 85477 invoked by uid 500); 6 Feb 2008 19:56:09 -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 85467 invoked by uid 99); 6 Feb 2008 19:56:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Feb 2008 11:56:09 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of niall.pemberton@gmail.com designates 72.14.204.230 as permitted sender) Received: from [72.14.204.230] (HELO qb-out-0506.google.com) (72.14.204.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Feb 2008 19:55:40 +0000 Received: by qb-out-0506.google.com with SMTP id c7so5408943qbc.16 for ; Wed, 06 Feb 2008 11:55:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=5U5b0J52xhA9zM0n3bXmZsy5i9ENjhVil0A0U6hqe2w=; b=jWAv5SdWKozzVgyH36vXAxoyIkrPsAz4is0tXKf+2G7byfxCv8aRthQkpSJUyjpsTYkhJYLqZZhpBoidv7kWA3CHssZkD3d+kj37dZLw2ySabpwMlSKz4HBvz942f+SfydGp+94O09JmhXuq5yo/KDyGMNQFYcsspVexYpAbPUo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Mbgh/KAq8brX1KeF+YzdLRkzWATzCC+tNYbRCxJ1pF5yUvK+LVT3c7Y7tJJ6UuYC+fqyYUKzj2R0kdFZHhFySJVc/Ixzg73mii5g8Y5VhDuUHM46UYeUnDXEjP1okRqdBPN9jwTq+q3hr800OQ+gWUOVLJU4REgIldU2TrGkIYM= Received: by 10.114.106.1 with SMTP id e1mr3739615wac.95.1202327745874; Wed, 06 Feb 2008 11:55:45 -0800 (PST) Received: by 10.114.56.1 with HTTP; Wed, 6 Feb 2008 11:55:45 -0800 (PST) Message-ID: <55afdc850802061155i270d102i3387f430bb2b95cb@mail.gmail.com> Date: Wed, 6 Feb 2008 19:55:45 +0000 From: "Niall Pemberton" To: "Jakarta Commons Developers List" Subject: Re: svn commit: r619115 - /commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java In-Reply-To: <94C476C03BFF5E42AC3518FDAC9643C43C7D7F2A68@HQMAIL.rocketsoftware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080206192711.9B3FC1A983E@eris.apache.org> <94C476C03BFF5E42AC3518FDAC9643C43C7D7F2A68@HQMAIL.rocketsoftware.com> X-Virus-Checked: Checked by ClamAV on apache.org On Feb 6, 2008 7:34 PM, Gary Gregory wrote: > What I meant to say in the commit comment was: > Eat own dog food: Use EMPTY instead of "". You can change log messages if you want Niall > 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.ja > > va > > > > Author: ggregory > > Date: Wed Feb 6 11:27:10 2008 > > New Revision: 619115 > > > > URL: http://svn.apache.org/viewvc?rev=619115&view=rev > > Log: > > Eat own dog food: > > > > Modified: > > > > commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.jav > > a > > > > Modified: > > commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.jav > > a > > > URL: > > http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apach > > e/commons/lang/StringUtils.java?rev=619115&r1=619114&r2=619115&view=diff > > ====================================================================== > > ======== > > --- > > commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.jav > > a (original) > > +++ > > commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.jav > > a Wed Feb 6 11:27:10 2008 > > @@ -2351,7 +2351,7 @@ > > return ArrayUtils.EMPTY_STRING_ARRAY; > > } > > > > - if ( ( separator == null ) || ( "".equals( separator ) ) ) { > > + if ( ( separator == null ) || ( EMPTY.equals( separator ) ) ) { > > // Split on whitespace. > > return splitWorker( str, null, max, preserveAllTokens ) ; > > } > > @@ -2391,7 +2391,7 @@ > > end = len ; > > substrings.add( str.substring( beg ) ) ; > > } else { > > - substrings.add( "" ); > > + substrings.add( EMPTY ); > > } > > } > > beg = 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 == null) { > > - replaceChars = ""; > > + replaceChars = EMPTY; > > } > > boolean modified = false; > > int replaceCharsLength = replaceChars.length(); > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org