pjfanning commented on code in PR #3300:
URL: https://github.com/apache/pekko/pull/3300#discussion_r3527499742


##########
actor/src/main/java/org/apache/pekko/io/ByteBufferCleaner.java:
##########
@@ -51,9 +51,10 @@ private static final class Java9Cleaner implements Cleaner {
 
     private Java9Cleaner() throws ReflectiveOperationException {
       final Class<?> unsafeClass = Class.forName("sun.misc.Unsafe");
-      final Field field = unsafeClass.getDeclaredField("theUnsafe");
+      final java.lang.reflect.Field field = 
unsafeClass.getDeclaredField("theUnsafe");
       field.setAccessible(true);

Review Comment:
   the field.setAccessible(true) is probably not needed after these changes



-- 
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]

Reply via email to