nastra commented on PR #4617:
URL: https://github.com/apache/iceberg/pull/4617#issuecomment-1144632025

   just curious, why wouldn't we want to allow something like `if 
(Objects.nonNull(x))`? The checkstyle message suggests to use 
`Preconditions.checkNotNull` instead, but that's not really the same. I can see 
why we'd want to use `Preconditions.checkNotNull` rather than 
`Objects.requireNonNull` but not why we'd prevent usage of `Objects.nonNull`, 
since it's just returning a `boolean`


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to