Page 1 of 1

type safe java?

Posted: 30 Jan 2008, 23:08
by jigidyjim
It would be nice if the following code:

List <User>users = z.getUserList();

Did not generate the following warning:

Type safety: The expression of type List needs unchecked conversion to conform to List<User>


Could that warning go away if the Zone.getUserList() method correctly typed java.util.List?

Thanks.