7116722: Miscellaneous warnings sun.misc ( and related classes )
Alan Bateman
Alan.Bateman at oracle.com
Wed Nov 30 16:56:35 UTC 2011
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.
More information about the core-libs-dev
mailing list