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


##########
java/memory/memory-core/src/main/java/org/apache/arrow/memory/Accountant.java:
##########
@@ -59,7 +61,7 @@ class Accountant implements AutoCloseable {
    */
   private final AtomicLong locallyHeldMemory = new AtomicLong();
 
-  public Accountant(Accountant parent, String name, long reservation, long 
maxAllocation) {
+  public Accountant(@Nullable Accountant parent, String name, long 
reservation, long maxAllocation) {

Review Comment:
   @davisusanibar how about annotating the `name` as `@NonNull`? 
   
   Since 
   ```java
   Preconditions.checkNotNull(name, "name must not be null");
   ```



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