7116404: Miscellaneous warnings (java.rmi.**, serialization, some core classes)
Alan Bateman
Alan.Bateman at oracle.com
Wed Nov 30 15:50:59 UTC 2011
On 30/11/2011 15:06, Rémi Forax wrote:
>
> Note that you can use clazz.asSubclass(Enum.class) instead of casting
> to the raw type Class,
> you will still have a warning but you will be not the one that have
> introduced a raw type :)
Your mail arrived just a few minutes after I did the hg push. The only
thing about using asSubClass(Enum.class) is that it might not be as
obvious to the reader. As you say it would result in a warning too but
thanks for going through these changes too.
-Alan
More information about the core-libs-dev
mailing list