cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Schröder <Peter.Schroe...@freenet-ag.de>
Subject AW: Java5: the expression of type list needs unchecked conversion
Date Mon, 05 Mar 2007 07:57:50 GMT
you may provide the annotation @SuppressWarnings("unchecked") 
this will probably remove the warning in your IDE.

the warning occurs, because of the performQuery returns just a List-Object wich is not typesafe.

-----Ursprüngliche Nachricht-----
Von: news [mailto:news@sea.gmane.org] Im Auftrag von Arturo Perez
Gesendet: Freitag, 2. März 2007 20:53
An: user@cayenne.apache.org
Betreff: Java5: the expression of type list needs unchecked conversion

Hi all,

I'm using Eclipse and Java6 now.  Whenever I do anything with
performQuery() the IDE complains that
	the expression of type list needs unchecked conversion.
I'm sure I could turn that off in the IDE but is there a way to
write it so that the warning goes away?  I tried casting.

-arturo


Mime
View raw message