[jboss-dev-forums] [Design of POJO Server] - Re: Metamodel and collections

anil.saldhana@jboss.com do-not-reply at jboss.com
Thu Nov 15 10:00:48 EST 2007


"adrian at jboss.org" wrote : "wolfc" wrote : 
  |   | Code with an explicit check on null is twice as fast. So I would save 1ms for every ~100000 calls. :-)
  |   | 
  | If only the new for() loop checked for null and didn't iterate instead of throwing an NPE. ;-)

Yes, the enhanced for loop should have been checking for nulls.

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

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



More information about the jboss-dev-forums mailing list