[jdk19] RFR: 8288596: Random:from() adapter does not delegate to supplied generator in all cases
Raffaello Giulietti
duke at openjdk.org
Mon Jun 27 15:34:46 UTC 2022
On Mon, 27 Jun 2022 15:02:36 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
>> Extend delegation by instance returned by Random.from() to all methods exposed by RandomGenerator.
>
> just a stylistic comment in passing: it's a bit strange to see half of the methods call `this.generator` and the other half simply call `generator`. Otherwise looks like your change is ready to be sponsored!
@dfuch Yes, you're right.
Personally, I don't like to use `this.` when it's useless (like here) and, on the other hand, I didn't want to change too many lines to get rid of it in the existing code.
-------------
PR: https://git.openjdk.org/jdk19/pull/36
More information about the core-libs-dev
mailing list