He-Pin opened a new pull request, #3085: URL: https://github.com/apache/pekko/pull/3085
### Motivation Java 17 introduced records that make Java code more concise by eliminating boilerplate for data carrier classes. ### Modification - Convert command classes (AddPost, AddPostDone, GetPost, ChangeBody, Publish, PostContent) to records in BlogPostEntity - Convert event classes (PostAdded, BodyChanged, Published) to records in BlogPostEntity - Convert command classes to records in BlogPostEntityDurableState - Update all field accesses to use record accessor methods ### Result Test Java code is more concise and idiomatic for Java 17+, reducing boilerplate in two key documentation example files. ### Tests - `sbt javafmtAll` (passes) - `sbt "persistence-typed / Test / compile"` (to be verified by CI) ### References None - code modernization -- 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]
