Skip to content

Commit 673d37c

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Java: update Math.min test case
1 parent a81c54b commit 673d37c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

java/ql/test/ext/TestModels/Test.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ public void test() throws Exception {
102102
int i4 = (int)source();
103103
int i5 = (int)source();
104104
sink(Math.min(i4, i5)); // $hasValueFlow
105+
sink(Math.min(i4, 42)); // $hasValueFlow
106+
sink(Math.min(42, i5)); // $hasValueFlow
105107

106108
// java.sql
107109
Connection con = DriverManager.getConnection("");

0 commit comments

Comments
 (0)