Skip to content

Commit 50e95b5

Browse files
Apply suggestions from code review
Co-authored-by: Anders Schack-Mulligen <[email protected]>
1 parent 834f2e8 commit 50e95b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/ql/lib/semmle/code/java/frameworks/MyBatis.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ private class MyBatisProviderStep extends TaintTracking::AdditionalValueStep {
134134
override predicate step(DataFlow::Node n1, DataFlow::Node n2) {
135135
exists(MethodAccess ma, Annotation a, Method providerMethod |
136136
exists(int i |
137-
ma.getArgument(i) = n1.asExpr() and
138-
providerMethod.getParameter(i) = n2.asParameter()
137+
ma.getArgument(pragma[only_bind_into](i)) = n1.asExpr() and
138+
providerMethod.getParameter(pragma[only_bind_into](i)) = n2.asParameter()
139139
)
140140
|
141141
a.getType() instanceof MyBatisProvider and

0 commit comments

Comments
 (0)