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

Method nestedCatch

src/test/resources/controlflow/Exceptions.java:118–129  ·  view source on GitHub ↗
(int i)

Source from the content-addressed store, hash-verified

116 }
117
118 int nestedCatch(int i) {
119 try {
120 toString();
121 } catch (NullPointerException npe) {
122 try {
123 int x = i / i;
124 } catch (ArithmeticException ae) {
125 return i;
126 }
127 }
128 return 0;
129 }
130
131 static Object use(Object x) {
132 return x;

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected