jborgers/PMD-jPinpoint-rules

Fix Request: Processing error in AvoidSqlInExpression

Closed this issue · 0 comments

Example:

import javax.persistence.TypedQuery;

public class PmdProcessingError {
    void example() {
        String number = "", kinds = "";
        String queryStr = "SELECT M FROM MessageEntity m WHERE m.kind IN :kinds";
        final TypedQuery<Object> query = null;
        query.setParameter("num", number);
        query.setParameter("kinds", kinds);
    }
}

Results in:
image