Query module ConstantExpAppearsNonConstant

name
Expression always evaluates to the same value
description
An expression that always evaluates to the same value, but which has a non-constant subexpression, indicates a mistake.
kind
problem
problem.severity
warning
precision
very-high
id
java/evaluation-to-constant
tags
maintainability useless-code

Imports

java

Provides all default Java QL imports.

Predicates