commons-dev mailing list archives

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

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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message