You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by "He-Pin (via GitHub)" <gi...@apache.org> on 2026/06/25 20:32:58 UTC

[PR] refactor: migrate Collections/Arrays.asList to Java 9+ collection factories [pekko-management]

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

   ### Motivation
   Java 9+ provides `List.of()` factory method that is more concise and returns truly immutable collections.
   
   ### Modification
   Replace `Collections.singletonList()` with `List.of()`, `Collections.emptyList()` with `List.of()`, and `Arrays.asList()` with `List.of()` in HealthCheckTest.
   
   ### Result
   Cleaner code using Java 17 immutable collection factories.
   
   ### 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: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


Re: [PR] refactor: migrate Collections/Arrays.asList to Java 9+ collection factories [pekko-management]

Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin merged PR #856:
URL: https://github.com/apache/pekko-management/pull/856


-- 
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: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org