Clover coverage report - CRISPY - 1.1.1
Coverage timestamp: Mi Nov 15 2006 13:09:46 CET
file stats: LOC: 35   Methods: 2
NCLOC: 20   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
MethodAccessiblePrivilegedAction.java - 100% 100% 100%
coverage
 1    package net.sf.crispy.util;
 2   
 3    import java.lang.reflect.Method;
 4    import java.security.PrivilegedAction;
 5   
 6    import net.sf.crispy.impl.ServiceManager;
 7   
 8    /**
 9    * Check the Permission for <code>setAccessible(true)</code>.
 10    *
 11    * @author Linke
 12    *
 13    */
 14    public class MethodAccessiblePrivilegedAction implements PrivilegedAction {
 15   
 16    private final Method method;
 17   
 18  1709 public MethodAccessiblePrivilegedAction(Method pvMethod) {
 19  1709 method = pvMethod;
 20    }
 21   
 22  1709 public Object run() {
 23  1709 try {
 24  1709 method.setAccessible(true);
 25    } catch (Exception e) {
 26    if (ServiceManager.DEBUG_MODE_ON == true) {
 27    e.printStackTrace();
 28    }
 29   
 30    }
 31  1709 return null;
 32    }
 33   
 34   
 35    }