"adrian(a)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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...