Details

    • Type: Sub-task
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      Description

      Particularly for contains(null), and containsKey/containsValue for Maps.

      The general rule seems to be, for collections that disallow nulls:

      Queues and Deques: contains(null) returns false.

      Sets: contains(null) throws NPE.

      Maps: containsKey(null) and containsValue(null) throw NPE.

        Attachments

          Activity

            People

            • Assignee:
              smarks Stuart Marks
              Reporter:
              smarks Stuart Marks
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: