Review for CR 6728865 : Improved heuristics for Collections.disjoint()
Ulf Zibis
Ulf.Zibis at gmx.de
Sat Dec 18 15:34:55 UTC 2010
Am 18.12.2010 02:02, schrieb Rémi Forax:
> Otherwise, you declare some local variables final.
> Declaring a local variable as final doesn't appear in the generated bytecode.
> The usual convention for the source of the JDK is to use final
> in front of a local variable only when needed (inner class).
Not always!
Martin Buchholz wrote:
The "final" is there purely for software engineering reasons,
so that people don't make the common mistake of
modifying a field cached in a local, which would have no effect.
see: http://mail.openjdk.java.net/pipermail/core-libs-dev/2010-March/003887.html
-Ulf
More information about the core-libs-dev
mailing list