RFR: 8003246: Add Supplier to ThreadLocal
Remi Forax
forax at univ-mlv.fr
Thu Dec 6 23:44:44 UTC 2012
On 12/06/2012 11:05 PM, Jeff Hain wrote:
>> nitpicking welcome :)
> AFAIK (*), removing 'private' for supplier field could prevent
> javac to generate accessors for this field, in case it would be
> accessed from outside inner class (but since it's not, it would
> not yield better perfs, just smaller bytecode).
>
> (*) If I correctly undertood what Rémi once said :)
It's true only if the field is accessed ouside the inner class but
inside the enclosing class (or the enclosing class of the enclosing class).
BTW, at some point, it will be a good idea to get ride of all these
method access$000 in java.lang/java.util at least.
>
> -Jeff
Rémi
More information about the core-libs-dev
mailing list