Package net.sourceforge.pmd.lang.java.rule.errorprone
package net.sourceforge.pmd.lang.java.rule.errorprone
-
ClassesClassDescriptionThe method clone() should only be implemented if the class implements the Cloneable interface with the exception of a final method that only throws CloneNotSupportedException.Makes sure you close your database connections.Detects method calls on collections where the passed object cannot possibly be in the collection due to type mismatch.Searches through all methods and constructors called from constructors.Detects conditional expressions and statements where both branches are equal.Rule that checks
Comparableclasses for proper equals/hashCode implementations.Returns Checks if the singleton rule is used properly.An operation on an Immutable object (String, BigDecimal or BigInteger) won't change the object itself.Reports usages of pure methods where the result is ignored.