Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8238684

Override getOrDefault in immutable Map implementations

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 15
    • Component/s: core-libs

      Description

      Since null values are disallowed in the java.util immutable maps, we can improve upon the default implementation since a null return from get(key) always means that the default value should be returned.

        Attachments

          Activity

            People

            Assignee:
            redestad Claes Redestad
            Reporter:
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: