CodeQL library for Java
codeql/java-all 0.5.5 ( changelog , source )

Predicate endsInQuote

A static analysis of strings that end in a single quote. When such strings are concatenated with another string, it suggests the programmer believes that code needed quoting. However, it is better to use a prepared query than to just put single quotes around the string.

Import path

predicate endsInQuote ( Expr expr )