He-Pin opened a new pull request, #1095: URL: https://github.com/apache/pekko-http/pull/1095
## Summary - Replace `bodyParts.toArray().length` with `bodyParts.size()` in `RangeDirectivesExamplesTest.java` Creating an array just to check its length is unnecessary. `List.size()` is more idiomatic and avoids the allocation. ## Test plan - [x] `sbt javafmtAll` — formatted - [x] `sbt "docs / Test / compile"` — compiles successfully - [ ] CI validates full test suite Part of the Java 17 modernization effort. -- 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]
