Skip to content

Commit a7da6c8

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Java: update cast and delete tests
1 parent db545e4 commit a7da6c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public void test() throws Exception {
171171
AssertionError assertErr = new AssertionError(source());
172172
sink((String)assertErr.getMessage()); // $hasValueFlow
173173

174-
sink(Test.class.cast(source())); // $hasTaintFlow
174+
sink(Test.class.cast(source())); // $hasValueFlow
175175

176176
Exception excep1 = new Exception((String)source(), (Throwable)source());
177177
sink((String)excep1.getMessage()); // $hasValueFlow
@@ -181,7 +181,7 @@ public void test() throws Exception {
181181
sink((String)excep2.getMessage()); // $hasValueFlow
182182

183183
StringBuilder sb = (StringBuilder)source();
184-
sink(sb.delete(0, 1)); // $hasTaintFlow
184+
sink(sb.delete(0, 1)); // $hasValueFlow
185185

186186
Thread thread1 = new Thread((Runnable)source());
187187
sink(thread1); // $hasTaintFlow

0 commit comments

Comments
 (0)