[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: VFS - minor performance improvement

adrian@jboss.org do-not-reply at jboss.com
Fri Jan 11 11:51:44 EST 2008


"scott.stark at jboss.org" wrote : I thought we talked about changing getChild(...) to not throw the IOException.

Your thinking of the isLeaf() checking for child operations. It current throws an IOE if you
do findChild(), getChildren(), visit(), etc. on a leaf. 
We should probably keep for that for findChild (backwards compatibilty - null is not an
expected return value) but return null, Collections.emptyList() or do a no-op visit
in the other methods.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119150#4119150

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119150



More information about the jboss-dev-forums mailing list