RFR: CODETOOLS-7902853: JMH: Fix lint and deprecation warnings
Aleksey Shipilev
shade at openjdk.java.net
Tue Mar 23 20:20:55 UTC 2021
On Mon, 15 Mar 2021 13:28:05 GMT, Niels Basjes <github.com+240096+nielsbasjes at openjdk.org> wrote:
> My best guess at this moment is that it is related to my project using Java 8 and 11, and this project explicitly uses java 1.7.
I think it also requires `-Xlint` to be enabled. See this patch, which hooks up `-Xlint` and `-Werror` to JMH compilation tests:
https://cr.openjdk.java.net/~shade/jmh/Werror-1.patch
Please mix it in to this PR. (Then maybe say `/contributor add @shipilev` here).
> Also in all of the three other situations the input field is a `double` that is then cast to a `long`, which seems fine to me.
Yes!
-------------
PR: https://git.openjdk.java.net/jmh/pull/31
More information about the jmh-dev
mailing list