Query module ConcatenationInLoops

name
String concatenation in loop
description
Performing string concatenation in a loop that iterates many times may affect performance.
kind
problem
problem.severity
warning
precision
low
id
java/string-concatenation-in-loop
tags
efficiency maintainability

Imports

Expr

Provides classes for working with Java expressions.

JDK

Provides classes and predicates for working with standard classes and methods from the JDK.

Statement

Provides classes and predicates for working with Java statements.

Type

Provides classes and predicates for working with Java types.

Predicates

declaredInLoop
useAndDef

An assignment of the form

Classes

StringCat

A use of + that has type String.