He-Pin opened a new pull request, #414: URL: https://github.com/apache/pekko-persistence-r2dbc/pull/414
### Motivation Java 17 introduced records, pattern matching for instanceof, and text blocks that make Java code more concise and readable. ### Modification - Convert command data carrier classes to Java records in BlogPost - Use pattern matching for instanceof in JavadslChangeHandler - Use text blocks for multi-line SQL in BlogPostCounts - Update field accesses to use record accessor methods ### Result Test Java code is more concise and idiomatic for Java 17+. ### Tests - `sbt "docs / 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]
