.....thanks to Jeff Epstein. PMD is a Java source code analyzer. It finds
unused variables, empty catch blocks, unnecessary object creation, and so
forth.
Folks can download the latest version of PMD here:
http://sourceforge.net/project/showfile ... p_id=56262
and instructions on hooking up TextPad to PMD are here:
http://pmd.sourceforge.net/integrations.html
Yours,
Tom
There's now a PMD plugin for TextPad...
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Re: There's now a PMD plugin for TextPad...
A new version of PMD is out - v3.3 - with seven new rules, better JDK 1.5 support, and speed improvements. Among the new rules is UnnecessaryLocalBeforeReturn, which finds code like this:tcopeland wrote:PMD is a Java source code analyzer. It finds
unused variables, empty catch blocks, unnecessary object creation, and so
forth.
Folks can download the latest version of PMD here:
http://sourceforge.net/project/showfile ... p_id=56262
and instructions on hooking up TextPad to PMD are here:
http://pmd.sourceforge.net/integrations.html
Code: Select all
public class Foo {
public int foo() {
int x = doSomething();
return x; // instead, just 'return doSomething();'
}
}
Questions/comments are welcome!
Yours,
Tom
P.S. Using PMD? Get the book - "PMD Applied"!