JavaScript is disabled on your browser.
Skip navigation links
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
All Classes
SEARCH:
JavaScript is disabled on your browser.
Package net.sourceforge.pmd.lang.java.rule.bestpractices
Class Summary
Class
Description
AbstractClassWithoutAbstractMethodRule
AbstractSunSecureRule
Deprecated.
Internal API
AccessorClassGenerationRule
1.
AccessorMethodGenerationRule
ArrayIsStoredDirectlyRule
If a method or constructor receives an array as an argument, the array should be cloned instead of directly stored.
AvoidReassigningCatchVariablesRule
AvoidReassigningLoopVariablesRule
AvoidReassigningParametersRule
AvoidUsingHardCodedIPRule
CheckResultSetRule
Rule that verifies, that the return values of next(), first(), last(), etc.
ForLoopCanBeForeachRule
GuardLogStatementRule
Check that log.debug, log.trace, log.error, etc...
JUnitAssertionsShouldIncludeMessageRule
JUnitTestsShouldIncludeAssertRule
JUnitUseExpectedRule
This rule finds code like this:
LiteralsFirstInComparisonsRule
LooseCouplingRule
MethodReturnsInternalArrayRule
Implementation note: this rule currently ignores return types of y.x.z, currently it handles only local type fields.
MissingOverrideRule
Flags missing @Override annotations.
PositionLiteralsFirstInCaseInsensitiveComparisonsRule
Deprecated.
Replaced by
LiteralsFirstInComparisonsRule
PositionLiteralsFirstInComparisonsRule
Deprecated.
Replaced by
LiteralsFirstInComparisonsRule
PreserveStackTraceRule
UnusedAssignmentRule
UnusedFormalParameterRule
UnusedImportsRule
UnusedLocalVariableRule
UnusedPrivateFieldRule
UnusedPrivateMethodRule
This rule detects private methods, that are not used and can therefore be deleted.
UseCollectionIsEmptyRule
Detect structures like "foo.size() == 0" and suggest replacing them with foo.isEmpty().