RFR: 7903328: Introduce a new method 'clear' in interface 'Multiset' [v2]

Guoxiong Li gli at openjdk.org
Mon Sep 26 09:09:10 UTC 2022


On Mon, 26 Sep 2022 08:11:28 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

>> Guoxiong Li has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Remove null check.
>
> jmh-core/src/main/java/org/openjdk/jmh/util/DelegatingMultiset.java line 112:
> 
>> 110:     public void clear() {
>> 111:         size = 0;
>> 112:         if (map != null) {
> 
> I don't think `map` can be `null` here. You can skip the null check.

Fixed.

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

PR: https://git.openjdk.org/jmh/pull/81


More information about the jmh-dev mailing list