vlsi commented on pull request #2441:
URL: https://github.com/apache/calcite/pull/2441#issuecomment-864899298


   `@SuppressWarnings("methodref.receiver.bound.invalid")` on the field 
declaration.
   
   What the warning says is: "you publish a reference to uninitialized `this`", 
so the callee might observe unitialized object and fail with NPE or something. 
In other words, typically it is a bad practice to publish `this` from the 
middle of the constructor, however, `memoize` is a reasonable exception.
   


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to