[jdom-interest] re: Stirring up Trouble

Brett McLaughlin brett.mclaughlin at lutris.com
Wed Jul 19 14:48:43 PDT 2000


Robin Meade wrote:
> 
> Brett McLaughlin wrote:
> snip
> >
> > getContent(boolean preserveWhitespace);
> >
> > is perfectly intuitive.
> >
> > But what does
> >
> > getContent()
> >
> > do?
> snip
> 
> Wouldn't
> 
>   getContentTrimmed();
> 
> be more readable than
> 
>   getContent(true);

No - because you would then have two methods doing essentially the same
thing. If users are really unwilling to read the Javadoc, then they can
use trim().

> 
> For the latter, I need to consult the JavaDoc to know what's going on.

No offense, but you shouldn't be using an API if you aren't willing to
read the instructions ;-)

-Brett

> 
> As for
> 
>   getContent();
> 
> I would assume it returned the untrimmed content.
> 
> Robin Meade
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com

-- 
Brett McLaughlin, Enhydra Strategist
Lutris Technologies, Inc. 
1200 Pacific Avenue, Suite 300 
Santa Cruz, CA 95060 USA 
http://www.lutris.com
http://www.enhydra.org



More information about the jdom-interest mailing list