Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating javadoc for NullPointerException when Validate.notNull() is called #870

Merged

Conversation

dvmarcilio
Copy link
Contributor

@dvmarcilio dvmarcilio commented Mar 26, 2022

Hello! I updated some javadocs that mentioned IllegalArgumentException when an argument is null instead of NullPointerException. Tests were already checking for NPE, so I didn't write any.
This PR is similar to #785.

This is because of ba607f5, when lots of calls to Validate.isTrue(arg != null) (throws IAE) were changed to Validate.notNull(arg) (throws NPE).

The same wrong javadocs are also still present for DateUtils and FieldUtils.
I'll be glad to provide PRs for those if you feel it's needed. However, the diffs there will be much larger.
Thanks!

@garydgregory garydgregory changed the title updating javadoc for NullPointerException when Validate.notNull() is called Updating javadoc for NullPointerException when Validate.notNull() is called Mar 26, 2022
@garydgregory garydgregory merged commit d5fef1e into apache:master Mar 26, 2022
@garydgregory
Copy link
Member

@dvmarcilio Thank you so much. More PRs are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants