mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
Java: remove Function.apply model
This commit is contained in:
@@ -78,12 +78,6 @@ public class Test {
|
||||
sink(ar.get()); // $hasValueFlow
|
||||
|
||||
// java.util.function
|
||||
Function<Object, Object> func = a -> a + "";
|
||||
sink(func.apply(source())); // $hasTaintFlow
|
||||
|
||||
Function<Integer, Double> half = a -> a / 2.0;
|
||||
sink(half.apply((Integer)source())); // $hasTaintFlow
|
||||
|
||||
Supplier<Double> sup = (Supplier)source();
|
||||
sink(sup.get()); // $hasValueFlow
|
||||
|
||||
|
||||
Reference in New Issue
Block a user