commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Freeman" <awfree...@adelphia.net>
Subject [digester] Digester class questions
Date Fri, 21 Feb 2003 00:05:20 GMT
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


Mime
View raw message