FYI, in Java SE 19 SuppressedWarnings annotations will be applicable in all declaration contexts

Joseph D. Darcy joe.darcy at oracle.com
Fri Jan 28 02:32:50 UTC 2022


FYI, with the fix to

     JDK-8280744: Allow SuppressWarnings to be used in all declaration 
contexts

in 19, SuppressedWarnings annotations will be applicable in all 
declaration contexts, which include several where they are not currently 
allowed, such as package-info files.

-Joe



More information about the compiler-dev mailing list