[OpenJDK 2D-Dev] JDK 9 RFR of JDK-8067092: Suppress windows-specific deprecation warnings in the java.desktop module

joe darcy joe.darcy at oracle.com
Tue Dec 16 17:10:47 UTC 2014


On 12/16/2014 3:15 AM, Alan Bateman wrote:
> On 16/12/2014 06:07, joe darcy wrote:
>> Hello,
>>
>> Please review the next step of suppressing the deprecation warnings 
>> the client libraries, this time in windows-specific desktop code:
>>
>>     JDK-8067092: Suppress windows-specific deprecation warnings in 
>> the java.desktop module
>>     http://cr.openjdk.java.net/~darcy/8067092.0/
>>
>> Thanks,
> Lots more getPeer :-)
>
> The change looks okay to me and the same techniques to reduce these as 
> per the other thread.
>

Yes, same techniques as before -- for each warning, add 
"@SuppressWarning("deprecation")" to the enclosing method (or to the 
field for a field initializer expression). Some @SuppressWarning 
annotations cover multiple warning instances.

Thanks,

-Joe




More information about the 2d-dev mailing list