Other |
---|
repo-valhallaFixed |
Blocks :
|
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.