On Wed, 25 Nov 2020 13:55:52 GMT, Jim Laskey <jlas...@openjdk.org> wrote:

>> src/java.base/share/classes/java/util/concurrent/ThreadLocalRandom.java line 
>> 453:
>> 
>>> 451:      * @return a {@code RandomGenerator} object that uses {@code 
>>> ThreadLocalRandom}
>>> 452:      */
>>> 453:     public static RandomGenerator proxy() {
>> 
>> proxy is a generic name, is there a better name here ?
>
> will investigate

agree

>> src/java.base/share/classes/java/util/concurrent/ThreadLocalRandom.java line 
>> 459:
>> 
>>> 457:     // Methods required by class AbstractSpliteratorGenerator
>>> 458:     public Spliterator.OfInt makeIntsSpliterator(long index, long 
>>> fence, int origin, int bound) {
>>> 459:         return new RandomIntsSpliterator(proxy, index, fence, origin, 
>>> bound);
>> 
>> should use proxy()
>
> will investigate

Needed to use ThreadLocalRandomProxy.proxy otherwise a cast would be required.

-------------

PR: https://git.openjdk.java.net/jdk/pull/1292

Reply via email to