Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 2874 invoked from network); 18 Jul 2003 16:26:37 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 18 Jul 2003 16:26:37 -0000 Received: (qmail 29830 invoked by uid 97); 18 Jul 2003 16:29:11 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@nagoya.betaversion.org Received: (qmail 29823 invoked from network); 18 Jul 2003 16:29:10 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 18 Jul 2003 16:29:10 -0000 Received: (qmail 1545 invoked by uid 500); 18 Jul 2003 16:26:23 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 1411 invoked from network); 18 Jul 2003 16:26:21 -0000 Received: from bogucki.demon.co.uk (HELO localhost.localdomain) (194.222.212.136) by daedalus.apache.org with SMTP; 18 Jul 2003 16:26:21 -0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id h6IG2TaA014804 for ; Fri, 18 Jul 2003 16:03:44 GMT Received: (from yan@localhost) by localhost.localdomain (8.12.5/8.12.5/Submit) id h6IG2FUF014800; Fri, 18 Jul 2003 16:02:16 GMT X-Authentication-Warning: localhost.localdomain: yan set sender to yan@studylink.com using -f Subject: RE: [lang] Pre 2.0 StringUtils NPE changes From: Janek Bogucki To: Jakarta Commons Developers List In-Reply-To: <73E71EF16978D51197180002A56022D20743C763@ngmnt4mbx03.uk.capitalone.com> References: <73E71EF16978D51197180002A56022D20743C763@ngmnt4mbx03.uk.capitalone.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 (1.0.8-10) Date: 18 Jul 2003 16:02:15 +0000 Message-Id: <1058544135.1802.7.camel@localhost.localdomain> Mime-Version: 1.0 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Fri, 2003-07-18 at 13:49, Hope, Matthew wrote: > interesting problem... > > "empty string" has a very clear meaning in java, it is a non null String > object of zero length. > > Does the entrenched user base merit retaining a non standard naming > convention. > > or is Empty sufficiently entrenched to also mean null? (I don't think it is) > > I appreciate the dilemma but as a user would prefer it if the convention of > empty stayed as "" and only "". (but swallowing nulls and returning false id > just the ticket) > > My 2 cents > > Matt This is the same as way I always interpret 'empty' in the context of a Java String object. A empty String is a zero length String, not a null object reference. I can easily see that equating a null to an empty String is convenient but I'd be happy to be explicit about this assumed equivalence in my code than have a method with a slightly misleading name. -Janek --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org