reschke commented on PR #2457: URL: https://github.com/apache/jackrabbit-oak/pull/2457#issuecomment-3204335901
> > The solution with `AtomicReference` will fail with a `null` return value from the supplier, right? So that would need another check. > > In what scenario would it fail with a null return? I don't see how it can return null. If the supplier returns `null`, the null check would always be true, and it would keep calling the supplier. Test case coming. -- 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: oak-dev-unsubscr...@jackrabbit.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org