RFR: 8348195: More u2 conversion warnings after JDK-8347147

Coleen Phillimore coleenp at openjdk.org
Tue Jan 21 16:59:42 UTC 2025


On Tue, 21 Jan 2025 15:49:27 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> After [JDK-8347147](https://bugs.openjdk.org/browse/JDK-8347147), SonarCloud reports a few risky conversions from int to u2. It would be good to cover them with either checked_cast or changing the underlying type.

This looks good. Thank you for fixing this and I'm glad it's not worse. I've been a bit afraid to try -Wconversion again on these files.

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

Marked as reviewed by coleenp (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/23217#pullrequestreview-2565216047


More information about the hotspot-dev mailing list