You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Jacek Laskowski <ja...@laskowski.net.pl> on 2007/01/19 13:38:07 UTC
List classes = finder.findAnnotatedClasses(Stateless.class) for @SuppressWarnings?
Hi,
There's AnnotationDeployer.deploy with the following line:
List<Class> classes = finder.findAnnotatedClasses(Stateless.class);
Eclipse barks as classes is of raw type. Anyone know how to fix it
without @SuppressWarnings?
Jacek
--
Jacek Laskowski
http://www.JacekLaskowski.pl
Re: List classes = finder.findAnnotatedClasses(Stateless.class) for @SuppressWarnings?
Posted by Dain Sundstrom <da...@iq80.com>.
On Jan 19, 2007, at 4:38 AM, Jacek Laskowski wrote:
> Hi,
>
> There's AnnotationDeployer.deploy with the following line:
>
> List<Class> classes = finder.findAnnotatedClasses(Stateless.class);
>
> Eclipse barks as classes is of raw type. Anyone know how to fix it
> without @SuppressWarnings?
IIRC Class<?> but you will have to change finder to return that type
also.
-dain