Add @ValueBased to unmodifable Collection implementation classes

XMLWordPrintable

      Add @ValueBased to the collection factories in java.util and their implementation classes: List.of, List.copyOf, Set.of, Set.copyOf, Map.of, Map.copyOf, Map.ofEntries, and Map.entry.

      Adding the @ValueBased annotation will enable warnings to understand the scope of any issues related to assumptions about identity in Collection classes.

            Assignee:
            Roger Riggs
            Reporter:
            Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: