On Wed, 19 Aug 2020 at 13:48, Nathan Xu wrote:
>
> Thanks for the null-check tip! I appreciate that.
>
> As a matter of fact, NPE issue still bothers us a lot. This recent PR from
> the community is another validation:
> https://github.com/hibernate/hibernate-orm/pull/3499How to systematically
Thanks for the null-check tip! I appreciate that.
As a matter of fact, NPE issue still bothers us a lot. This recent PR from the
community is another validation:
https://github.com/hibernate/hibernate-orm/pull/3499How to systematically
combat NPE is a good topic and still highly relevant. Maybe
Welcome to the list Nathan!
I would be cautious in removing such lazy initialization patterns: even
when the array is not immediately allocated, we still often have reasons to
not want to allocate the wrapping object.
While of course each such choice relates to a specific context, so this
should
Hey Nathan,
I like the idea in general and but you have to be careful with changing
this as I assume this was done to save memory by creating the list, only
when at least one element would be added to the list. I guess if we
always initialize the list, we'd have to do something like the follow