You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2021/06/21 09:53:29 UTC

[GitHub] [calcite] vlsi commented on pull request #2441: [CALCITE-4655] Fix NullPointerExeption in JdbcTable.fieldClasses

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:
users@infra.apache.org