Refactoring Support General Support Deprecated Classes Find all classes that are annotated with @Deprecated or have deprecated features. JDK1.2 - Migration Tips when migrating to a newer JDK Version HashMap/Hashtable Use HashMap instead of Hashtable (JDK 1.2) ArrayList/Vector Use ArrayList instead of Vector (JDK 1.2) JDK5 - Migration Tips when migrating to a newer JDK Version StringBuilder/StringBuffer Use StringBuilder instead of StringBuffer (JDK 5) Use Number#valueOf() instead of new Number() Use Byte|Double|Float|Integer|Long|Short.valueOf(int) instead of new Byte|Double|Float|Integer|Long|Short() (JDK 5) (byte)') || entity('java.lang.Double#(double)') || entity('java.lang.Float#(float)') || entity('java.lang.Integer#(int)') || entity('java.lang.Long#(long)') || entity('java.lang.Short#(short)') } }; ]]> Use TimeUnit.*.sleep() Use TimeUnit.*.sleep() instead of Thread.sleep() (JDK 5) Use java.util.concurrent.Semaphore Use java.util.concurrent.Semaphore instead of Object#wait()/Object#notify() (JDK 5) ') || entity('java.lang.Object#wait()') || entity('java.lang.Object#notify()') || entity('java.lang.Object#notifyAll()') } }; ]]> JUnit4 - Migration @Test Annotations Methods without the @Test-Annotation are not executed by JUnit4 Do not mix JUnit3 and JUnit4 Do not use JUnit3 (extends TestCase, asserts, ...) from within org.junit annotated (JUnit4) methods/classes @Ignore Annotations Methods annotated with the @Ignore-Annotation are not executed by JUnit4