He-Pin opened a new pull request, #574: URL: https://github.com/apache/pekko-connectors-kafka/pull/574
### Motivation Java 16+ `Stream.toList()` provides a concise way to collect stream elements into an unmodifiable list. ### Modification Replace `.collect(Collectors.toList())` with `.toList()` across 4 files. Remove unused `Collectors` imports. ### Result Cleaner stream collection code using Java 17 API. ### Tests Not run - compile-only test file changes ### References None - Java 17 API 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: [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]
