Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-298

CollectionUtils.sizeIsEmpty(null) should return true

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.2
    • 4.0-alpha1, 4.0
    • Collection
    • None

    Description

      The API would look inconsistent if

      • CollectionUtils.isEmpty(null) == true
      • CollectionUtils.size(null) == 0
        but
      • CollectionUtils.sizeIsEmpty(null) throws IAE

      Attachments

        1. COLLECTION-298.patch
          3 kB
          Benjamin Bentmann

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bentmann Benjamin Bentmann
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: