On Fri, 13 Sep 2024 14:52:22 GMT, Kevin Rushforth <k...@openjdk.org> wrote:

> This PR enables the `removal` lint option, along with `-Werror`, for 
> compiling shims and test classes. In order to do that, I had to also do the 
> following:
> 
> * Disable the `options` lint warning as is done for the `javafx.swing` 
> module, and for the same reason: using `-source NN -release NN` produces a 
> warning that we know about and don't care to see (and will fail the build 
> with `-Werror`)
> * Change the `apiguardian` dependency from `testRuntimeOnly` to 
> `testImplementation`, since it needs to be a compile-time dependency to avoid 
> many compile-time warnings for a missing annotation
> * Add a missing `@SuppressWarnings("removal")` in one place
> * Fix the varargs warnings filed in 
> [JDK-8338340](https://bugs.openjdk.org/browse/JDK-8338340)
> 
> I tested locally and with our CI test system. The GHA build passes.

This looks like a reasonable change to ensure somewhat better code quality. +1

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

Marked as reviewed by mhanl (Committer).

PR Review: https://git.openjdk.org/jfx/pull/1565#pullrequestreview-2306446614

Reply via email to