Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8d754f5

Browse files
committed
Kotlin: Fix bug in, and performance of, NullGuards::clearlyNotNullExpr
1 parent 03c1845 commit 8d754f5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

java/ql/lib/semmle/code/java/dataflow/NullGuards.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ Expr clearlyNotNullExpr(Expr reason) {
6464
or
6565
result.(ImplicitCastExpr).getExpr() = clearlyNotNullExpr(reason)
6666
or
67-
result instanceof ImplicitNotNullExpr
67+
result instanceof ImplicitNotNullExpr and reason = result
6868
or
69-
result instanceof ImplicitCoercionToUnitExpr
69+
result instanceof ImplicitCoercionToUnitExpr and reason = result
7070
or
7171
result.(AssignExpr).getSource() = clearlyNotNullExpr(reason)
7272
or

0 commit comments

Comments
 (0)