I started receiving warnings about unsafe conversions soon after I started using Java 1.5 autoboxing. The warning was
Settings.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.
In order to see the full warning, I added the following parameter to my javac ant task after consulting http://bobcat.webappcabaret.net/javachina/faq/ant_01.htm#ant_mid_Q100
This led to a more descriptive message.
Settings.java:43: warning: [unchecked] unchecked conversion
After a bit of reading, I found an article titled @SuppressWarnings and its applicability to various program elements which helped me through various scenarios and ideas to keep in mind when integrating with pre-1.5 Java code. I hope it helps you too!

0 Responses to “warning: [unchecked] unchecked conversion”