Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

The expression of type List needs unchecked conversion to conform ?

Murray9654Dec 9 2009 — edited Dec 10 2009
Hi i have done the following
String[]proffArray=request.getParameterValues("proffId");
	List<String> proffIds=Arrays.asList(proffArray);
The above code is showing a warning. The warning is "Type safety: The expression of type List needs unchecked conversion to conform to List<String>". How to deal with this? instead of suppressing warning can we do anything?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 7 2010
Added on Dec 9 2009
2 comments
7,031 views