[
https://issues.apache.org/jira/browse/LANG-1681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Diego Marcilio resolved LANG-1681.
----------------------------------
Resolution: Fixed
Fixed in https://github.com/apache/commons-lang/pull/1047
> Wrong javadoc exception in several methods and classes
> -------------------------------------------------------
>
> Key: LANG-1681
> URL: https://issues.apache.org/jira/browse/LANG-1681
> Project: Commons Lang
> Issue Type: Bug
> Components: lang.*, lang.builder.*, lang.math.*, lang.reflect.*,
> lang.time.*
> Affects Versions: 3.12.0
> Reporter: Diego Marcilio
> Priority: Minor
>
> I'm working on a tool that can systematically extract some exceptions thrown
> by methods. It found 85 methods that throw {{NullPointerException}} 's but
> with a javadoc documenting an {{{}IllegalArgumentException{}}}.
> I believe these inconsistencies were caused by LANG-1525, where several
> {{{}Validate.isTrue({}}}) (throws IAE) calls were changed to
> {{{}Validate.notNull(){}}}, which calls {{Objects.requireNonNull()}} (throws
> NPE). The tests were updated, but not the documentation.
> LANG-1663 already fixed a few inconsistent javadocs, but there are dozens
> left.
>
> May I provide a pull request fixing the cases I found? Should a single PR
> contain all the changes?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)