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

Method switchStmt

src/test/resources/world/AllInOne.java:99–128  ·  view source on GitHub ↗
(int x)

Source from the content-addressed store, hash-verified

97 }
98
99 int switchStmt(int x) {
100 switch (x) {
101 case 1:
102 int y = 5 + x;
103 return y;
104 case 10:
105 foo(10);
106 return 500;
107 case 100:
108 foo(x);
109 return 1000;
110 default:
111 bar(1, null);
112 }
113 x = x * 2;
114 switch (x) {
115 case 1:
116 int y = 5 + x;
117 return y;
118 case 2:
119 foo(10);
120 return 500;
121 case 5:
122 foo(x);
123 return 1000;
124 default:
125 bar(1, null);
126 }
127 return 0;
128 }
129
130 void invoke(int x, I i) {
131 // invokevirtual

Callers

nothing calls this directly

Calls 2

fooMethod · 0.95
barMethod · 0.95

Tested by

no test coverage detected