dcapwell commented on code in PR #4079:
URL: https://github.com/apache/cassandra/pull/4079#discussion_r2038435407
##########
src/java/org/apache/cassandra/tools/FieldUtil.java:
##########
@@ -38,32 +39,12 @@ public static void setInstanceUnsafe(Class<?> klass, Object
v, String fieldName)
private static void setInstanceUnsafeThrowing(Class<?> klass, Object v,
String fieldName) throws Throwable
{
- Field field = klass.getDeclaredField(fieldName);
Review Comment:
duplicate logic makes it harder to support newer JDKs, so moved the
duplicate logic to the existing `ReflectionUtils` class, and kept w/e was
unique to this class
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]