Skip to content

Commit 116c13e

Browse files
authored
Merge pull request github#3106 from aschackmull/java/getstmtbody-type
Java: Sharpen return type of LambdaExpr.getStmtBody().
2 parents ac68b62 + 6d3717c commit 116c13e

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)