Skip to Main Content

Java Programming

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!

Iterator gives "warning: [unchecked] unchecked conversion"

807605May 2 2007 — edited Jul 31 2007
Hello all,

I'm trying to get rid of some errors I have during compiling. Instead of using "@SuppressWarnings("unchecked")" I decided to REALLY get rid of the warnings ;)

See this line of code:
Iterator<EntityRoleName> i = EntityRoleName.openByQuery("my sql statement");
The "openByQuery" method returns an Iterator. Now, how can I avoid the following warning message while compiling:

warning: [unchecked] unchecked conversion

And yes, if possible I would still like to use Iterator<EntityRoleName> in an upcoming solution.

Thanks in advance!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 28 2007
Added on May 2 2007
5 comments
511 views