This looks strange to me. Why is the iteration-holder made final??
Source: http://htmlunit.sourceforge.net/table-howto.html
Source: http://htmlunit.sourceforge.net/table-howto.html
# All method parameters are declared final.
# All local variables and fields are declared final, unless otherwise required not to be by the context. A local variable or field that is assigned once must be declared final.
Originally posted by Scott Selikoff:
On an unrelated note about temporary loop variables... One trick I learned in performance enhancements in loops is if you can reuse objects without call 'new', you will generally have some performance improvement. Granted, in the example you provided, this isn't really applicable, but in other simple objects like VOs it can be preferable to re-use the same object and set new values for it. It can also lead to side effects if you're not careful, so use with caution.