Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03c1845 commit 8d754f5Copy full SHA for 8d754f5
1 file changed
java/ql/lib/semmle/code/java/dataflow/NullGuards.qll
@@ -64,9 +64,9 @@ Expr clearlyNotNullExpr(Expr reason) {
64
or
65
result.(ImplicitCastExpr).getExpr() = clearlyNotNullExpr(reason)
66
67
- result instanceof ImplicitNotNullExpr
+ result instanceof ImplicitNotNullExpr and reason = result
68
69
- result instanceof ImplicitCoercionToUnitExpr
+ result instanceof ImplicitCoercionToUnitExpr and reason = result
70
71
result.(AssignExpr).getSource() = clearlyNotNullExpr(reason)
72
0 commit comments