RFR: 7903451: JMH: Refactor internal Optional usages [v2]
Aleksey Shipilev
shade at openjdk.org
Mon Apr 3 08:56:51 UTC 2023
On Sun, 2 Apr 2023 08:40:09 GMT, Andrei Rybak <duke at openjdk.org> wrote:
>> jmh-core/src/main/java/org/openjdk/jmh/util/Optional.java line 55:
>>
>>> 53: }
>>> 54:
>>> 55: public T orElseGet(Supplier<T> alternativeSupplier) {
>>
>> `orElseFrom`?
>
> I used the [name of the same method from `j.u.Optional`]( https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html#orElseGet-java.util.function.Supplier-), because switching to `j.u.Optional` was the whole idea behind the original state of the PR.
Ok, nevermind then, thanks.
-------------
PR Review Comment: https://git.openjdk.org/jmh/pull/98#discussion_r1155669884
More information about the jmh-dev
mailing list