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