tal66 opened a new pull request, #4617:
URL: https://github.com/apache/iceberg/pull/4617
Hi, this closes #4613.
running the checks on this simple example, :
```
public static void main(String[] args) {
String str = null;
// not allowed
Objects.nonNull(str);
Objects.nonNull(Integer.valueOf(123));
Objects.requireNonNull(str);
Objects.requireNonNullElse(str, "123");
Objects.requireNonNullElseGet(str, () -> "1");
// allowed
Objects.isNull(str);
}
```
generates: `<error line="..." severity="error" message="Prefer using
Preconditions.checkNotNull(Object, String)." source=...` for the 'not allowed'
lines above.
--
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]