RFR: 8003246: Add Supplier to ThreadLocal (original) (raw)
Akhil Arora akhil.arora at oracle.com
Thu Dec 6 19:43:21 UTC 2012
- Previous message: RFR: 8003246: Add Supplier to ThreadLocal
- Next message: RFR: 8003246: Add Supplier to ThreadLocal
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 12/06/2012 11:02 AM, Remi Forax wrote:
just nitpicking, return new SuppliedThreadLocal(supplier); should be return new SuppliedThreadLocal<>(supplier); Also, can you add a @see in the constructor of ThreadLocal that references ThreadLocal.withInitialValue(Supplier).
http://cr.openjdk.java.net/~akhil/8003246.3/webrev/
also incorporates a nitpick from Mike - Objects.requireNonNull returns its arg
Thanks - nitpicking welcome :)
- Previous message: RFR: 8003246: Add Supplier to ThreadLocal
- Next message: RFR: 8003246: Add Supplier to ThreadLocal
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]