Package net.sourceforge.pmd.lang.java.rule.migrating

Class Summary
JUnitUseExpectedRule This rule finds code like this: public void testFoo() { try { doSomething(); fail("should have thrown an exception"); } catch (Exception e) { } } In JUnit 4, use @Test(expected = Exception.class)
UnnecessaryCastRule This is a rule, that detects unnecessary casts when using Java 1.5 generics and collections.
 



Copyright © 2002-2015 InfoEther. All Rights Reserved.