private boolean checkAndReset(Class<?> c){
  try {
    Method m=c.getMethod("randoop_checkAndReset");
    m.setAccessible(true);
    return (boolean)m.invoke(null);
  }
 catch (  NoSuchMethodException e) {
    throw new Error("Cannot find instrumentation method: " + e);
  }
catch (  SecurityException e) {
    throw new Error("Security error when accessing instrumentation method: " + e);
  }
catch (  IllegalAccessException e) {
    throw new Error("Cannot access instrumentation method: " + e);
  }
catch (  IllegalArgumentException e) {
    throw new Error("Bad argument to instrumentation method: " + e);
  }
catch (  InvocationTargetException e) {
    throw new Error("Bad invocation of instrumentation method: " + e);
  }
}

private boolean checkAndReset ( Class < ? > c ) { try { Method m = c . getMethod ( "randoop_checkAndReset" ) ; m . setAccessible ( true ) ; return ( boolean ) m . invoke ( null ) ; } catch ( NoSuchMethodException e ) { throw new Error ( "Cannot find instrumentation method: " + e ) ; } catch ( SecurityException e ) { throw new Error ( "Security error when accessing instrumentation method: " + e ) ; } catch ( IllegalAccessException e ) { throw new Error ( "Cannot access instrumentation method: " + e ) ; } catch ( IllegalArgumentException e ) { throw new Error ( "Bad argument to instrumentation method: " + e ) ; } catch ( InvocationTargetException e ) { throw new Error ( "Bad invocation of instrumentation method: " + e ) ; } }
calls the coverage instrumentation method .
