Java: Update expected test output

This commit is contained in:
Tom Hvitved
2021-10-21 11:38:52 +02:00
parent 3da73b9001
commit 6d58dd2823
2 changed files with 2 additions and 10 deletions

View File

@@ -151,15 +151,7 @@ public class A {
forEach(new Object[] {source(16)}, x -> sink(x)); // $ flow=16
// Spurious flow from 17 is reasonable as it would likely
// also occur if the lambda body was inlined in a for loop.
// It occurs from the combination of being able to observe
// the side-effect of the callback on the other argument and
// being able to chain summaries that update/read arguments,
// e.g. fluent apis.
// Spurious flow from 18 is due to not matching call targets
// in a return-from-call-to-enter-call flow sequence.
forEach(new Object[2][], xs -> { sink(xs[0]); xs[0] = source(17); }); // $ SPURIOUS: flow=17 flow=18
forEach(new Object[2][], xs -> { sink(xs[0]); xs[0] = source(17); });
Object[][] xss = new Object[][] { { null } };
forEach(xss, x -> {x[0] = source(18);});

View File

@@ -436,7 +436,7 @@ public class Test {
sink(y); // $ hasValueFlow=reduce_3 hasValueFlow=reduce_4 hasValueFlow=reduce_5
return source("reduce_5");
});
sink(out); // $ hasValueFlow=reduce_4 hasValueFlow=reduce_5 SPURIOUS: hasValueFlow=reduce_3
sink(out); // $ hasValueFlow=reduce_4 hasValueFlow=reduce_5
}
{
// "java.util.stream;Stream;true;reduce;(Object,BiFunction,BinaryOperator);;Argument[0];ReturnValue;value"