commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Karasulu" <aok...@bellsouth.net>
Subject [digester] pop(), peek() methods don't need to catch exceptions
Date Sun, 04 Apr 2004 19:14:41 GMT
Hi,

I was just looking at the digester code as I was writing another incarnation
of the digester pattern and noticed the pop() and peek() methods do not need
to catch exceptions.  It is just cheaper to check the size of the stack
before the pop() or peek() calls and return null instead of just making that
call surrounded by a catch block.

You guys want me to just make and commit these changes?  It's not really a
big deal but thought I'd let you guys know about it.

Alex




---------------------------------------------------------------------
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