7116722: Miscellaneous warnings sun.misc ( and related classes )
Rémi Forax
forax at univ-mlv.fr
Wed Nov 30 17:11:45 UTC 2011
On 11/30/2011 05:56 PM, Alan Bateman wrote:
> On 30/11/2011 16:33, Chris Hegarty wrote:
>> I started to look at the reason why we suppressed unchecked warning
>> for sun.misc.Service in a few places, and this lead me into some
>> other sun.misc classes. Here's a change that fixes a few warnings in
>> this area.
>>
>> http://cr.openjdk.java.net/~chegar/7116722/webrev.00/webrev/
>>
>> -Chris.
> It's nice to see existing @SuppressWarnings going away.
>
> What would you think of just biting the bullet and getting InetAddress
> and the http server switched over to using ServiceLoader?
>
> In ExtensionDependency.installExtension then I assume you could assign
> to a temporary variable with the @SuppressWarnings("unchecked") at the
> declaration and avoid the uncheckedClone.
>
> -Alan.
Hi Chris,
In your patch, JarIndex constructor should use diamond syntax.
Rémi
More information about the core-libs-dev
mailing list