Query module NoAssignInBooleanExprs

name
Assignment in Boolean expression
description
Assignments in Boolean conditions can be confused with equality tests and make the condition more difficult to understand.
kind
problem
problem.severity
warning
precision
low
id
java/assignment-in-boolean-expression
tags
reliability readability external/cwe/cwe-481

Imports

Expr

Provides classes for working with Java expressions.

Statement

Provides classes and predicates for working with Java statements.

Classes

BooleanExpr

An expression that is used as a condition.