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:54:23 UTC
[PR] refactor: modernize Java test code with Java 17 records [pekko-connectors]
He-Pin opened a new pull request, #1697:
URL: https://github.com/apache/pekko-connectors/pull/1697
### Motivation
Java 17 introduced records that make Java code more concise by eliminating boilerplate for data carrier classes.
### Modification
- Convert User class to a record in slick module tests
- Convert Person class to a record in cassandra module tests
- Update all field accesses to use record accessor methods
### Result
Test Java code is more concise and idiomatic for Java 17+, removing redundant equals/hashCode boilerplate.
### Tests
- `sbt javafmtAll` (passes)
- `sbt "slick / Test / compile"` (to be verified by CI)
- `sbt "cassandra / 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]
Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin commented on PR #1697:
URL: https://github.com/apache/pekko-connectors/pull/1697#issuecomment-4750208754
quite simpler.
--
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]
Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin merged PR #1697:
URL: https://github.com/apache/pekko-connectors/pull/1697
--
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