[jdom-interest] Reference comparisons in SAXHandler.startElement

Rosen, Alex arosen at silverstream.com
Tue Mar 13 08:12:25 PST 2001


The first thing that String.equals() does is to see if the two strings are ==
and return true if so. So why not just use .equals()? The cost of the extra
method call will certainly be lost in the noise.

Alex



More information about the jdom-interest mailing list