Withdrawn: CODETOOLS-7902834: JMHSample_25_API_GA selectToBreed selection bug

Aleksey Shipilev shade at openjdk.java.net
Wed Mar 10 09:21:14 UTC 2021


On Tue, 9 Mar 2021 18:15:13 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> SonarCloud instance reports: 'Was "-=" meant instead?'
> 
>             double thresh = Math.random() * totalScore;
>             for (Chromosome c : list) {
>                 if (thresh < 0) return c;
>                 thresh =- c.score(); // <--- here
>             }

This pull request has been closed without being integrated.

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

PR: https://git.openjdk.java.net/jmh/pull/28


More information about the jmh-dev mailing list