davisusanibar commented on code in PR #37723:
URL: https://github.com/apache/arrow/pull/37723#discussion_r1434371496


##########
java/memory/memory-core/src/main/java/org/apache/arrow/memory/util/MemoryUtil.java:
##########
@@ -63,6 +66,9 @@ public class MemoryUtil {
       // try to get the unsafe object
       final Object maybeUnsafe = AccessController.doPrivileged(new 
PrivilegedAction<Object>() {
         @Override
+        @SuppressWarnings({"nullness:argument", "nullness:return"})

Review Comment:
   Just for the record
   ```
   MemoryUtil.java:[72,25] error: [override.return] Incompatible return type.
   [ERROR]   found   : @Initialized @Nullable Object
   [ERROR]   required: @Initialized @NonNull Object
   [ERROR]   Consequence: method in @Initialized @NonNull <anonymous 
org.apache.arrow.memory.util.MemoryUtil$1>
   [ERROR]     @Initialized @Nullable Object run(@Initialized @NonNull 
<anonymous org.apache.arrow.memory.util.MemoryUtil$1> this)
   [ERROR]   cannot override method in @Initialized @NonNull 
PrivilegedAction<@Initialized @NonNull Object>
   [ERROR]     @Initialized @NonNull Object run(@Initialized @NonNull 
PrivilegedAction<@Initialized @NonNull Object> this)
   ``` 



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

Reply via email to