Skip to content

Commit 72a2497

Browse files
aibaarsaschackmull
andauthored
Apply suggestions from code review
Co-authored-by: Anders Schack-Mulligen <[email protected]>
1 parent 9cf6601 commit 72a2497

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

java/ql/test/library-tests/dataflow/local-flow/ObjectsTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import java.util.Objects;
22

33
class 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-

java/ql/test/library-tests/dataflow/local-flow/flow.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 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) {

0 commit comments

Comments
 (0)