Util method to get a method, ignoring checked exceptions @param clazz @param name @param parameterTypes @return method
(Class clazz, String name, Class... parameterTypes)
| 107 | * @return method |
| 108 | */ |
| 109 | private static Method getMethod(Class clazz, String name, Class... parameterTypes) |
| 110 | { |
| 111 | Method method = null; |
| 112 | try |
| 113 | { |
| 114 | method = clazz.getMethod(name, parameterTypes); |
| 115 | } |
| 116 | catch (Exception e) |
| 117 | { |
| 118 | e.printStackTrace(); |
| 119 | } |
| 120 | return method; |
| 121 | } |
| 122 | |
| 123 | } |
| 124 |
no test coverage detected