On Thu, 3 Jun 2021 17:44:42 GMT, Bradford Wetmore <wetm...@openjdk.org> wrote:

>> src/java.base/share/classes/javax/crypto/JceSecurityManager.java line 50:
>> 
>>> 48:  * @since 1.4
>>> 49:  */
>>> 50: @SuppressWarnings("removal")
>> 
>> You should remove this annotation now that the dependency on SecurityManager 
>> has been removed.
>
> Unfortunately, we are still calling AccessController, thus the annotation 
> needs to remain.

But if you follow my suggestion you can simply apply it to this line:


@SuppressWarnings("removal")
final List<StackFrame> stack = 
AccessController.doPrivileged(pa).walk(Stream::toList);

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

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

Reply via email to