He-Pin opened a new pull request, #756: URL: https://github.com/apache/pekko-grpc/pull/756
## Summary - Replace `Collections.unmodifiableList(new ArrayList<>(...))` with `List.copyOf(...)` in ServerConfiguration - Replace `Collections.unmodifiableSet(new LinkedHashSet<>(...))` with `Set.copyOf(...)` in ClientConfiguration ## Changes - `codegen/src/main/scala/org/apache/pekko/grpc/gen/javadsl/ServerConfiguration.java` - `codegen/src/main/scala/org/apache/pekko/grpc/gen/javadsl/ClientConfiguration.java` ## Notes - Source collections derive from enum `.values()` arrays, so null elements are impossible - `List.copyOf`/`Set.copyOf` rejecting nulls is a beneficial fail-fast property for these config classes - Removed unused `Collections` and `LinkedHashSet` imports from ClientConfiguration -- 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]
