This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
I've recently upgraded from 1.4.2 to 5.0 update 4 and have been stumbling across warnings and have to recompile with -source 1.4, below is a compilation of some of the problems that I'm having.
javac Test.java
Note: Test.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.
You've done nothing wrong; all pre-Tiger Java code of any complexity will elicit these warnings when compiled with JDK 1.5. What's happened is that there is a new way to use the container classes. Here is a document that will introduce you to generics.
Note that you can't have it both ways! Code that won't give these warnings under Tiger, won't compile at all under older JDKs. This is an irreversible change once you start down that road.