He-Pin opened a new pull request, #1094: URL: https://github.com/apache/pekko-http/pull/1094
## Summary - `Map.forEach` replacing entrySet iteration loop - Text block `"""..."""` replacing multi-line string concatenation - Java 16+ record replacing simple data holder class ## Changes ### Map.forEach (Java 8+) - `ParameterDirectivesTest.java` — entrySet loop → `entries.forEach(entry -> ...)` ### Text blocks (Java 15+) - `JsonStreamingExamplesTest.java` — string concatenation → text block ### Records (Java 16+) - `Pet.java` (http-tests/src/main) → `record Pet(long id, String name)` - Removed `@JsonCreator` annotation (modern Jackson handles records natively) - Updated callers: `PetStoreExample.java` (2 sites), `PetStoreAPITest.java` (4 sites) ## Notes - All changes in test/example code only, no production API modifications - `javafmtAll` verified — no formatting changes needed -- 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]
