He-Pin opened a new pull request, #3194: URL: https://github.com/apache/pekko/pull/3194
## Summary - Migrate `Collections.unmodifiableList(x)` → `List.copyOf(x)` - Migrate `Collections.unmodifiableSet(new HashSet<>(Arrays.asList(...)))` → `Set.of(...)` - Migrate `Collections.unmodifiableSet(x)` → `Set.copyOf(x)` - Migrate `Collections.unmodifiableMap(x)` → `Map.copyOf(x)` - Remove now-unused imports (`Collections`, `HashSet`, `Arrays` where applicable) - 14 test files across 6 modules: `docs`, `actor-typed-tests`, `persistence-typed-tests`, `persistence-typed`, `persistence`, `cluster-sharding-typed` ## Test plan - [x] `sbt javafmtAll` — all files formatted - [x] All 6 affected modules compile successfully - [ ] CI validates full test suite Part of the Java 17 modernization effort. See also #3191 (switch expressions), #3192 (pattern matching instanceof), #3193 (misc Java 11-17). -- 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]
