[OpenJDK 2D-Dev] RFR: 8189198: Add "forRemoval = true" to Applet API deprecations

Andy Herrick herrick at openjdk.java.net
Wed Mar 17 20:35:54 UTC 2021

On Wed, 17 Mar 2021 19:02:39 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> > I cannot find any instances where the scope can be narrowed
> Are you about AquaInternalFrameUI.mouseRelased, BasicPopupMenuUI. stateChanged, and other non-trivial methods?

These have the code pattern such as: 
} else if (c instanceof JApplet) {
putting '@SuppressWarnings("removal")' before the declaration of 'c' does not help, because the code is not an assignment to 'c'


PR: https://git.openjdk.java.net/jdk/pull/2920

More information about the 2d-dev mailing list