You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by "He-Pin (via GitHub)" <gi...@apache.org> on 2026/06/18 21:26:45 UTC
[PR] refactor: modernize Java test code with Java 17 records [pekko-connectors-kafka]
He-Pin opened a new pull request, #562:
URL: https://github.com/apache/pekko-connectors-kafka/pull/562
### Motivation
Java 17 introduced records that make Java code more concise by eliminating boilerplate for data carrier classes.
### Modification
- Convert SampleData class to a Java record with Jackson annotations
- Convert User class to a record in ClusterShardingExample
- Update field accesses to use record accessor methods
### Result
Test Java code is more concise, reducing equals/hashCode/toString boilerplate while maintaining Jackson serialization compatibility.
### Tests
- `sbt "java-tests / 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: notifications-unsubscribe@pekko.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org
Re: [PR] refactor: modernize Java test code with Java 17 records [pekko-connectors-kafka]
Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin merged PR #562:
URL: https://github.com/apache/pekko-connectors-kafka/pull/562
--
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: notifications-unsubscribe@pekko.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org