(@NotNull Class<?> klass, @NotNull String fieldName)
| 500 | } |
| 501 | |
| 502 | @SuppressWarnings("SameParameterValue") |
| 503 | static @Nullable Field getDeclaredField(@NotNull Class<?> klass, @NotNull String fieldName) { |
| 504 | for (Field field : getDeclaredFields(klass)) |
| 505 | if (field.getName().equals(fieldName)) |
| 506 | return field; |
| 507 | return null; |
| 508 | } |
| 509 | |
| 510 | public static <T extends AccessibleObject> @NotNull T setAccessible(@NotNull T ao) { |
| 511 | unsafe.putBoolean(ao, OVERRIDE_OFFSET, true); |
no test coverage detected