
14 Sep
2009
14 Sep
'09
10:11 p.m.
Steve,
Why zap the final? It was there for a reason.
And what would that reason be?
It explicitly declares that the method can never be redefined and therefore is a candidate for inline expansion. Obviously, the method is implicitly final anyway due to it being private but adding the final means that if the method is ever made non-private it will still be capable of being optimised. That's my reason, what's yours? Cheers, Mark