(final Class<T> clazz, String fieldName)
| 193 | // Secret sauce for setting final fields; don't make it public. |
| 194 | |
| 195 | static <T> FieldSetter<T> getFieldSetter(final Class<T> clazz, String fieldName) { |
| 196 | try { |
| 197 | Field field = clazz.getDeclaredField(fieldName); |
| 198 | return new FieldSetter<T>(field); |
| 199 | } catch (NoSuchFieldException e) { |
| 200 | throw new AssertionError(e); // programmer error |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | // Secret sauce for setting final fields; don't make it public. |
| 205 |
no outgoing calls
no test coverage detected