He-Pin opened a new pull request, #1717:
URL: https://github.com/apache/pekko-connectors/pull/1717

   ### 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(...)` across 48 files (212 
occurrences)
   - Replace `Collections.emptyList/Map/Set()` and `singletonList()` with 
`List/Map/Set.of()` across 12 files
   - Update imports accordingly
   
   ### Result
   Cleaner code using Java 17 immutable collection factories. 52 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]

Reply via email to