Class InefficientStringBufferingRule

  • All Implemented Interfaces:
    JavaParserVisitor, ImmutableLanguage, PropertySource, Rule

    public class InefficientStringBufferingRule
    extends AbstractJavaRule
    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.
    Author:
    mgriffa