RFR: 8279598: Provide adapter from RandomGenerator to Random [v11]
liach
duke at openjdk.java.net
Tue Mar 1 01:37:08 UTC 2022
On Mon, 28 Feb 2022 18:49:59 GMT, ExE Boss <duke at openjdk.java.net> wrote:
>> Yasser Bazzi has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Update javadoc
>
> src/java.base/share/classes/java/util/Random.java line 93:
>
>> 91:
>> 92: @SuppressWarnings("serial")
>> 93: private static class RandomWrapper extends Random implements RandomGenerator {
>
> This class should also override all the default methods in `RandomGenerator` and forward them to `this.generator`.
The method overridden in this class are exactly those present in `RandomGenerator` itself, which are also the API methods of `Random`.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7001
More information about the core-libs-dev
mailing list