Skip to content

Conversation

@inponomarev
Copy link
Contributor

Update Javadoc @throws from IllegalArgumentException to NullPointerException to match actual behavior when either element is null (thrown via Objects.requireNonNull).

@garydgregory garydgregory merged commit b076e47 into apache:master Jan 24, 2026
20 checks passed
@garydgregory garydgregory changed the title Fix JavaDoc to reflect actual exception type thrown (IllegalArgumentException to NullPointerException) Fix Javadoc in DoubleRange.of(Double, Double) to reflect actual exception type thrown (IllegalArgumentException to NullPointerException) Jan 24, 2026
@garydgregory garydgregory changed the title Fix Javadoc in DoubleRange.of(Double, Double) to reflect actual exception type thrown (IllegalArgumentException to NullPointerException) Fix Javadoc in DoubleRange.of(Double, Double) to reflect actual exception type thrown Jan 24, 2026
garydgregory added a commit that referenced this pull request Jan 24, 2026
@garydgregory
Copy link
Member

@inponomarev
Thank you for your PR. I merged to git master and fixed the same issue in the other classes in this hierarchy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants