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