Skip to content

Commit 6d3717c

Browse files
committed
Java: Sharpen return type of LambdaExpr.getStmtBody().
1 parent 16f2957 commit 6d3717c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/src/semmle/code/java/Expr.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ class LambdaExpr extends FunctionalExpr, @lambdaexpr {
10161016
}
10171017

10181018
/** Gets the body of this lambda expression, if it is a statement. */
1019-
Stmt getStmtBody() { hasStmtBody() and result = asMethod().getBody() }
1019+
Block getStmtBody() { hasStmtBody() and result = asMethod().getBody() }
10201020

10211021
/** Gets a printable representation of this expression. */
10221022
override string toString() { result = "...->..." }

0 commit comments

Comments
 (0)