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

Method throwUncaught

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

Source from the content-addressed store, hash-verified

56 }
57
58 void throwUncaught(int i)
59 throws ArithmeticException, IllegalStateException {
60 if (i > 0) {
61 use(i);
62 throw new ArithmeticException();
63 }
64 try {
65 if (i < 0) {
66 throw new ArithmeticException();
67 } else {
68 throw new IllegalStateException();
69 }
70 } catch (ArithmeticException e) {
71 }
72 }
73
74 int nestedThrowCaught(int x) {
75 try {

Callers 2

declaredCaughtMethod · 0.95
declaredUncaughtMethod · 0.95

Calls 1

useMethod · 0.95

Tested by

no test coverage detected