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

JavaDoc for ArrayUtils.isNotEmpty() is slightly misleading

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.5
    • None

    Description

      JavaDoc states if the array is not empty or not null, however actually it is if the array is not empty and not null, i.e. "and" instead of "or". Looks like a small copy/paste error from "isEmpty()"

      Attached patch fixes all the instances.

      Attachments

        1. 0001-LANG-1259-Adjust-JavaDoc.patch
          6 kB
          Dominik Stadler
        2. ArrayUtils.isNotEmpty.patch
          5 kB
          Dominik Stadler

        Activity

          People

            britter Benedikt Ritter
            dominik.stadler@gmx.at Dominik Stadler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: