We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 70b85a3 + f54b02e commit 5792b4dCopy full SHA for 5792b4d
java/ql/test/library-tests/dataflow/callback-dispatch/A.java
@@ -182,4 +182,18 @@ void foo3() {
182
183
public Object field1;
184
public Object field2;
185
+
186
+ void foo4() {
187
+ Producer1Consumer3<Integer> pc = new Producer1Consumer3<Integer>() {
188
+ int cfield = 0;
189
+ @Override public Integer[] make() {
190
+ return new Integer[] { cfield };
191
+ }
192
+ @Override public void eat(Integer[] xs) {
193
+ cfield = xs[0];
194
195
+ };
196
+ applyConsumer3(new Integer[] { (Integer)source(21) }, pc);
197
+ sink(applyProducer1(pc)[0]); // $ flow=21
198
199
}
0 commit comments