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:31:10 UTC
[PR] refactor: modernize Java test code with Java 17 features [pekko-http]
He-Pin opened a new pull request, #1076:
URL: https://github.com/apache/pekko-http/pull/1076
### Motivation
Java 17 introduced records and text blocks that make Java code more concise and readable.
### Modification
- Convert SomeData to a record in both Jackson and Jackson3 test modules
- Convert Bid, GetBids, Bids to records in HttpServerActorInteractionExample
- Use text blocks for multi-line config strings in Jackson tests
- Update field accesses to use record accessor methods
### Result
Test Java code is more concise and idiomatic for Java 17+, reducing boilerplate.
### Tests
- `sbt "http-marshallers-java/http-jackson / Test / compile"` (to be verified by CI)
- `sbt "http-marshallers-java/http-jackson3 / Test / compile"` (to be verified by CI)
- `sbt "docs / 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 features [pekko-http]
Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin merged PR #1076:
URL: https://github.com/apache/pekko-http/pull/1076
--
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