Withdrawn: CODETOOLS-7902840: JMH: Fix *Statistics iterators to throw NoSuchElementException properly
Aleksey Shipilev
shade at openjdk.java.net
Tue Mar 9 15:42:14 UTC 2021
On Tue, 9 Mar 2021 14:53:02 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
> SonarCloud instance reports:
> Add a "NoSuchElementException" for iteration beyond the end of the collection.
>
> ...in places like:
>
> @Override
> public Map.Entry<Double, Long> next() {
> return new AbstractMap.SimpleImmutableEntry<>(values[currentIndex++], 1L);
> }
>
> @Override
> public Map.Entry<Double, Long> next() {
> entryReturned = true;
> return new AbstractMap.SimpleImmutableEntry<>(value, 1L);
> }
This pull request has been closed without being integrated.
-------------
PR: https://git.openjdk.java.net/jmh/pull/27
More information about the jmh-dev
mailing list