On Tue, 18 May 2021 18:38:52 GMT, Weijun Wang <[email protected]> wrote:
>> src/java.base/share/classes/java/security/AccessController.java line 877:
>>
>>> 875: @CallerSensitive
>>> 876: public static <T> T doPrivileged(PrivilegedExceptionAction<T>
>>> action,
>>> 877: @SuppressWarnings("removal")
>>> AccessControlContext context, Permission... perms)
>>
>> you might find it easier if you put the Permissions parameter on a new line.
>> There are several places in AccessController where the same thing happens.
>
> I'll try to update my auto-annotating program.
Turns out this only happens in this class:
$ rg '^\s*@SuppressWarnings("removal").*?,.'
src/java.base/share/classes/java/security/AccessController.java:449:
@SuppressWarnings("removal") AccessControlContext context, Permission... perms)
{
src/java.base/share/classes/java/security/AccessController.java:514:
@SuppressWarnings("removal") AccessControlContext context, Permission... perms)
{
src/java.base/share/classes/java/security/AccessController.java:877:
@SuppressWarnings("removal") AccessControlContext
context, Permission... perms)
I'll fix them manually.
-------------
PR: https://git.openjdk.java.net/jdk/pull/4073