Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 61837 invoked from network); 21 Feb 2003 00:05:26 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 21 Feb 2003 00:05:26 -0000 Received: (qmail 20017 invoked by uid 97); 21 Feb 2003 00:07:06 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@nagoya.betaversion.org Received: (qmail 20010 invoked from network); 21 Feb 2003 00:07:05 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 21 Feb 2003 00:07:05 -0000 Received: (qmail 61091 invoked by uid 500); 21 Feb 2003 00:05:19 -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 61015 invoked from network); 21 Feb 2003 00:05:18 -0000 Received: from unknown (HELO mta11.adelphia.net) (64.8.50.205) by daedalus.apache.org with SMTP; 21 Feb 2003 00:05:18 -0000 Received: from Pandora ([68.65.97.17]) by mta11.adelphia.net (InterMail vM.5.01.05.25 201-253-122-126-125-20021216) with SMTP id <20030221000525.XUKS12840.mta11.adelphia.net@Pandora> for ; Thu, 20 Feb 2003 19:05:25 -0500 From: "Andrew Freeman" To: "Commons-Dev" Subject: [digester] Digester class questions Date: Thu, 20 Feb 2003 19:05:20 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N What is the purpose of the following toString() method call on line 1261 of the Digester.startElement() method? String bodyText = this.bodyText.toString(); As far as I can tell it is never referenced. Also, on a related note, I personally find it confusing that the Digester class declares a bodyText StringBuffer field and the startElement() method declares a local String variable of the same name since they are both referenced within the same method. To make things even more confusing, the bodyTexts ArrayStack field is also used within this method. The endElement() method does the same thing. Is there a good reason for the local bodyText variable to have the same name as the bodyText field? TIA, Andy --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org