Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1681

Wrong javadoc exception in several methods and classes

    XMLWordPrintableJSON

Details

    Description

      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?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dvmarcilio Diego Marcilio
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: