He-Pin opened a new pull request, #546:
URL: https://github.com/apache/pekko-projection/pull/546

   ## Summary
   - Replace `Collections.unmodifiableMap(new HashMap<>(items))` with 
`Map.copyOf(items)` in ShoppingCart.Summary record
   
   ## Changes
   - `examples/src/test/java/jdocs/eventsourced/ShoppingCart.java`
   
   ## Notes
   - `Map.copyOf()` rejects null keys/values, which is appropriate here since 
item IDs are validated strings and quantities are auto-boxed from `int` 
primitives
   - Test/example code only, no API changes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to