File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
java/ql/test/library-tests/dataflow/local-flow Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
import java .util .Objects ;
2
2
3
3
class ObjectsTest {
4
- public static void taintSteps () {
4
+ public static void valueSteps () {
5
5
sink (Objects .requireNonNull (source ()));
6
6
sink (Objects .requireNonNull (source (), "message" ));
7
7
sink (Objects .requireNonNull (source (), () -> "value1" ));
@@ -12,4 +12,3 @@ public static void taintSteps() {
12
12
private static <T > T source () { return null ; }
13
13
private static void sink (Object o ) {}
14
14
}
15
-
Original file line number Diff line number Diff line change 1
1
import java
2
- import semmle.code.java.dataflow.TaintTracking
2
+ import semmle.code.java.dataflow.DataFlow
3
3
4
- class Conf extends TaintTracking :: Configuration {
4
+ class Conf extends DataFlow :: Configuration {
5
5
Conf ( ) { this = "conf" }
6
6
7
7
override predicate isSource ( DataFlow:: Node src ) {
You can’t perform that action at this time.
0 commit comments