mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
f6fd335784
* Possible bugs - empty try/catch/finally/switch statements * Dead code - unused local variables, parameters and private methods * Suboptimal code - wasteful String/StringBuffer usage * Overcomplicated expressions - unnecessary if statements, for loops that could be while loops * Duplicate code - copied/pasted code means copied/pasted bugs WWW: http://pmd.sourceforge.net/ PR: 99907 Submitted by: Alex Varju <freebsd-ports@varju.ca>
11 lines
470 B
Plaintext
11 lines
470 B
Plaintext
PMD scans Java source code and looks for potential problems like:
|
|
|
|
* Possible bugs - empty try/catch/finally/switch statements
|
|
* Dead code - unused local variables, parameters and private methods
|
|
* Suboptimal code - wasteful String/StringBuffer usage
|
|
* Overcomplicated expressions - unnecessary if statements, for loops
|
|
that could be while loops
|
|
* Duplicate code - copied/pasted code means copied/pasted bugs
|
|
|
|
WWW: http://pmd.sourceforge.net/
|