Diego Marcilio created LANG-1681:
------------------------------------

             Summary: 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


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.1#820001)

Reply via email to