This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JDBC and the fly likes java uses unchecked or unsafe operations Note: Recompile with -Xlint:unchecked for details. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "java uses unchecked or unsafe operations Note: Recompile with -Xlint:unchecked for details." Watch "java uses unchecked or unsafe operations Note: Recompile with -Xlint:unchecked for details." New topic
Author

java uses unchecked or unsafe operations Note: Recompile with -Xlint:unchecked for details.

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
Hello,

Why these warnings? Please help to understand them



Best Regards
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2504
    
    8

This document explains why you get warnings, how you can see if your code is safe or not.


Show us an example piece of your code that generates the warning.

Also have a read of one of Richard's ramblings.
Maybe you have to declare your variables as 'java.util.ArrayList<java.util.ArrayList>' in stead of 'java.util.ArrayList'?


OCUP UML fundamental and ITIL foundation
youtube channel
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
Thanks Jan your link is very useful

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: java uses unchecked or unsafe operations Note: Recompile with -Xlint:unchecked for details.