MCPcopy Create free account
hub / github.com/spotbugs/spotbugs / testPass5

Method testPass5

spotbugsTestCases/src/java/RECTest.java:162–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160
161 // should pass -- catches E, but RuntimeException caught first
162 public void testPass5() {
163 try {
164 for (int i = 0; i < 1000; i++)
165 for (int j = i; j < 1000; j++)
166 throwsNothing();
167 throwsIOException();
168 } catch (RuntimeException e) {
169 dontTriggerEmptyExceptionHandler();
170 } catch (Exception e) {
171 dontTriggerEmptyExceptionHandler();
172 }
173 }
174}

Callers

nothing calls this directly

Calls 3

throwsNothingMethod · 0.95
throwsIOExceptionMethod · 0.95

Tested by

no test coverage detected