On Fri, Aug 22, 2008 at 7:47 AM, Karl Wettin <[EMAIL PROTECTED]> wrote:
> > I also like to declare everything final that can be, except method >> params and locals, where it makes for too much noise. But I won't >> > > I think final only makes sense in superclass methods that are not ment to > be extended. There is lots of class, method and field finalization in Lucene > that I can't stand. (This is especially true for Document and Term.) It > forces me to do stuff like aggregating code when I really want to extend it. > It can be rather expensive if you got enough instances to keep track of. +10^10 The final declarations in Lucene make it nearly impossible to mock up tests that use Lucene objects. TRULY a pain. I have almost never seen a final declaration make any difference in speed on modern Java platforms.
