Class StringConcatenation

All Implemented Interfaces:
Detector, Priorities, StatelessDetector, 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 Details

    • StringConcatenation

      public StringConcatenation(BugReporter bugReporter)
  • Method Details