On Fri, 21 Jun 2024 12:21:38 GMT, Prasanta Sadhukhan <[email protected]> wrote:
> Build works ok however I see in some places like > [this](https://github.com/openjdk/jdk/blob/08ace27da1d9cd215c77471eabf41417ff6282d2/src/java.desktop/share/classes/java/awt/Graphics.java#L1169) > @SuppressWarnings("removal") is used, not sure if we need to use this here > too... It isn't needed on the constructor itself; it would only be needed if some other code uses it. In the case you cited (an override of the finalize method), you need the `@SuppressWarnings` because you are overriding a method in the base class (Object) that is deprecated for removal. ------------- PR Comment: https://git.openjdk.org/jdk/pull/19819#issuecomment-2182674063
