Package net.sourceforge.pmd.lang.java.rule.performance
-
Class Summary Class Description AddEmptyStringRule AppendCharacterWithCharRule This rule finds the following:AvoidInstantiatingObjectsInLoopsRule BigIntegerInstantiationRule Rule that marks instantiations of newBigInteger
orBigDecimal
objects, when there is a well-known constant available, such asBigInteger.ZERO
.ConsecutiveAppendsShouldReuseRule ConsecutiveLiteralAppendsRule This rule finds concurrent calls to StringBuffer/Builder.append where String literals are used.InefficientEmptyStringCheckRule This rule finds code which inefficiently determines empty strings.InefficientStringBufferingRule How this rule works: find additive expressions: + check that the addition is between anything other than two literals if true and also the parent is StringBuffer constructor or append, report a violation.InsufficientStringBufferDeclarationRule This rule finds StringBuffers which may have been pre-sized incorrectly.RedundantFieldInitializerRule Detects redundant field initializers, i.e. the field initializer expressions the JVM would assign by default.StringInstantiationRule UseIndexOfCharRule UselessStringValueOfRule UseStringBufferForStringAppendsRule