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

ArrayUtils#add confusing example in javadoc

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.3.2
    • 3.6
    • lang.*
    • None

    Description

      Method documentation claims that

      ArrayUtils.add(null, null) = null

      However, this is not true since this parameter combination leads to an exception.

      Either remove this line from documentation, or rewrite it to explicitly mention the exception. Maybe there are other related methods with similar problem in the docs.

      Attachments

        Activity

          People

            pascalschumacher Pascal Schumacher
            doublep Paul Pogonyshev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: