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

JavaDoc for ArrayUtils.isNotEmpty() is slightly misleading

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5
    • Component/s: None
    • Labels:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: