Java: remove Function.apply model

This commit is contained in:
Jami Cogswell
2023-01-12 09:58:53 -05:00
parent fd593fd4f0
commit e0444449c8
4 changed files with 2 additions and 7 deletions

View File

@@ -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