MCPcopy Create free account
hub / github.com/LFYSec/MScan / captureRecv

Method captureRecv

src/test/resources/pta/lambda/Args.java:19–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 }
18
19 static void captureRecv() {
20 // method reference
21 A a = new A();
22 Runnable r = a::noArg;
23 r.run();
24
25 // lambda expression
26 Args args = new Args();
27 args.callOnThis(new B());
28 }
29
30 void callOnThis(B b) {
31 Runnable r = () -> consume(b);

Callers 1

mainMethod · 0.95

Calls 2

callOnThisMethod · 0.95
runMethod · 0.45

Tested by

no test coverage detected