MCPcopy Create free account
hub / github.com/ReadyTalk/avian / staticMethod

Method staticMethod

test/extra/Tails.java:10–16  ·  view source on GitHub ↗
(Interface i, int n)

Source from the content-addressed store, hash-verified

8 }
9
10 private static int staticMethod(Interface i, int n) {
11 if (n < Limit) {
12 return i.interfaceMethod(n + 1);
13 } else {
14 return leafMethod(n);
15 }
16 }
17
18 private static int leafMethod(int n) {
19 expect(new Throwable().getStackTrace().length == 2);

Callers 2

mainMethod · 0.95
virtualMethodMethod · 0.45

Calls 2

leafMethodMethod · 0.95
interfaceMethodMethod · 0.65

Tested by

no test coverage detected