(Class<?> clazz, String methodName)
| 123 | } |
| 124 | |
| 125 | protected static Method tryGetMethod(Class<?> clazz, String methodName) { |
| 126 | try { |
| 127 | Method method = clazz.getMethod(methodName); |
| 128 | if ( method!=null ) { |
| 129 | method.setAccessible(true); |
| 130 | } |
| 131 | return method; |
| 132 | } |
| 133 | catch (NoSuchMethodException ex) { } |
| 134 | catch (SecurityException ex) { } |
| 135 | return null; |
| 136 | } |
| 137 | |
| 138 | protected static Field tryGetField(Class<?> clazz, String fieldName) { |
| 139 | try { |
no test coverage detected