He-Pin opened a new pull request, #543: URL: https://github.com/apache/pekko-projection/pull/543
### Motivation Java 9+ provides `List.of()`, `Map.of()`, `Set.of()` factory methods that are more concise and return truly immutable collections. ### Modification - Replace `Arrays.asList(...)` with `List.of()` - Replace `Collections.singletonList()` with `List.of()` - Replace `Collections.unmodifiableList(Arrays.asList(...))` with `List.of()` - Replace `Collections.singleton()` with `Set.of()` - Update imports accordingly ### Result Cleaner code using Java 17 immutable collection factories. 10 files changed. ### 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]
