NSAmelchev commented on code in PR #10764:
URL: https://github.com/apache/ignite/pull/10764#discussion_r1221802767
##########
modules/core/src/main/java/org/apache/ignite/internal/util/GridUnsafe.java:
##########
@@ -1660,6 +1661,12 @@ private static Method newDirectBufferMethod(Object
nioAccessObj) {
return javaVer < 9 ? "sun" : "jdk.internal";
}
+ @NotNull private static boolean directByteBufferLongLongCtor() {
Review Comment:
I suggest to declare a local var in static class initialization and pass it
to methods:
```
boolean isDirectBufLongCap = majorJavaVersion(jdkVersion()) >= 21;
```
--
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]