Class StringConcatenation

  • All Implemented Interfaces:
    Detector, Priorities, StatelessDetector, java.lang.Cloneable, org.apache.bcel.classfile.Visitor

    public class StringConcatenation
    extends BytecodeScanningDetector
    implements StatelessDetector
    Find occurrences of using the String "+" or "+=" operators within a loop. This is much less efficient than creating a dedicated StringBuffer object outside the loop, and then appending to it.
    Author:
    Dave Brosius, William Pugh
    • Constructor Detail

      • StringConcatenation

        public StringConcatenation​(BugReporter bugReporter)