mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Apply suggestions from code review
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import java.util.Objects;
|
||||
|
||||
class ObjectsTest {
|
||||
public static void taintSteps() {
|
||||
public static void valueSteps() {
|
||||
sink(Objects.requireNonNull(source()));
|
||||
sink(Objects.requireNonNull(source(), "message"));
|
||||
sink(Objects.requireNonNull(source(), () -> "value1"));
|
||||
@@ -12,4 +12,3 @@ class ObjectsTest {
|
||||
private static <T> T source() { return null; }
|
||||
private static void sink(Object o) {}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import java
|
||||
import semmle.code.java.dataflow.TaintTracking
|
||||
import semmle.code.java.dataflow.DataFlow
|
||||
|
||||
class Conf extends TaintTracking::Configuration {
|
||||
class Conf extends DataFlow::Configuration {
|
||||
Conf() { this = "conf" }
|
||||
|
||||
override predicate isSource(DataFlow::Node src) {
|
||||
|
||||
Reference in New Issue
Block a user