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