Files
codeql/java/ql/lib/change-notes/2022-05-09-value-discarding-expression.md
Marcono1234 36f56b5a18 Java: Rename StmtExpr to ValueDiscardingExpr
As mentioned by aschackmull during review, StatementExpression as defined
by the JLS only lists possible types of expressions, it does _not_ specify
that their value is discarded. Therefore, for example any method call could
be considered a StatementExpression.

The name ValueDiscardingExpr was chosen as replacement because the JLS uses
the phrase "if the expression has a value, the value is discarded" multiple
times.
2022-05-09 00:27:15 +02:00

167 B

category
category
feature
  • The QL class ValueDiscardingExpr has been added, representing expressions for which the value of the expression as a whole is discarded.