mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Java: Add some spurious source and sink examples.
This commit is contained in:
@@ -71,4 +71,11 @@ public class Sinks {
|
||||
Boolean b = s == "hello";
|
||||
sink(b);
|
||||
}
|
||||
|
||||
// Not a new sink as this callable already has a manual sink.
|
||||
// SPURIOUS-sink=p;Sinks;true;manualSinkAlreadyDefined;(Object);;Argument[0];test-sink;df-generated
|
||||
// neutral=p;Sinks;manualSinkAlreadyDefined;(Object);summary;df-generated
|
||||
public void manualSinkAlreadyDefined(Object o) {
|
||||
sink(o);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user