RFR: 8334580: Deprecate no-arg constructor BasicSliderUI() for removal [v2]
Kevin Rushforth
kcr at openjdk.org
Fri Jun 21 12:40:10 UTC 2024
On Fri, 21 Jun 2024 12:21:38 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> 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
More information about the client-libs-dev
mailing list