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

Method makeAdder

src/test/resources/dataflow/livevar/AnonInner.java:7–14  ·  view source on GitHub ↗
(final int i)

Source from the content-addressed store, hash-verified

5class AnonInner {
6
7 static Adder makeAdder(final int i) {
8 return new Adder() {
9 @Override
10 public int add(int j) {
11 return i + j;
12 }
13 };
14 }
15
16 static void show() {
17 System.out.println(makeAdder(2).add(5));

Callers 1

showMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected