Class BigIntegerInstantiationRule

java.lang.Object
net.sourceforge.pmd.properties.AbstractPropertySource
net.sourceforge.pmd.lang.rule.AbstractRule
net.sourceforge.pmd.lang.java.rule.AbstractJavaRule
net.sourceforge.pmd.lang.java.rule.AbstractJavaRulechainRule
net.sourceforge.pmd.lang.java.rule.performance.BigIntegerInstantiationRule
All Implemented Interfaces:
net.sourceforge.pmd.lang.ast.AstVisitor, JavaVisitor, net.sourceforge.pmd.lang.rule.Rule, net.sourceforge.pmd.properties.PropertySource

public class BigIntegerInstantiationRule extends AbstractJavaRulechainRule
Rule that marks instantiations of new BigInteger or BigDecimal objects, when there is a well-known constant available, such as BigInteger.ZERO.
  • Constructor Details

    • BigIntegerInstantiationRule

      public BigIntegerInstantiationRule()
  • Method Details