ivanzlenko commented on code in PR #6357:
URL: https://github.com/apache/ignite-3/pull/6357#discussion_r2269751118


##########
modules/core/src/main/java/org/apache/ignite/internal/util/GridUnsafe.java:
##########
@@ -1462,22 +1459,19 @@ public Unsafe run() throws Exception {
     private static long bufferAddressOffset() {
         final ByteBuffer maybeDirectBuf = ByteBuffer.allocateDirect(1);
 
-        Field addrField = AccessController.doPrivileged(new 
PrivilegedAction<Field>() {
-            @Override
-            public Field run() {
-                try {
-                    Field addrFld = Buffer.class.getDeclaredField("address");
-
-                    addrFld.setAccessible(true);
+        Field addrField = 
AccessController.doPrivileged((PrivilegedAction<Field>) () -> {

Review Comment:
   Fixed



-- 
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: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to