On Mon, 27 Mar 2023 14:31:14 GMT, Andrey Turbanov <aturba...@openjdk.org> wrote:

>> https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/sun/security/action/GetPropertyAction.java#L104
>
> But it's not a deprecation of the method/class. It just suppression of the 
> warning.
> `GetPropertyAction.privilegedGetProperty` is used in many places in JDK, 
> without `@SuppressWarnings("removal")`. It doesn't create any problems.
> As an example `java.lang.VirtualThread#createDelayedTaskScheduler`. There is 
> no redundant suppression 
> https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/java/lang/VirtualThread.java#L1107

Ah - sorry you're right.  Apologies for the confusion.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/12931#discussion_r1149343410

Reply via email to