You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by GitBox <gi...@apache.org> on 2026/06/25 20:41:04 UTC
[GH] (pekko-http/feature/java17-collection-factory): Workflow run "Validate and test" failed!
The GitHub Actions job "Validate and test" on pekko-http.git/feature/java17-collection-factory has failed.
Run started by GitHub user He-Pin (triggered by He-Pin).
Head commit for run:
0d44a17d38e08e4bf05b4d50930333ee807dc6ab / 虎鸣 <he...@alibaba-inc.com>
refactor: migrate Collections/Arrays.asList to Java 9+ factory methods
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(), Collections.singletonList()
with List.of(), Collections.emptyList/Map/Set() with List/Map/Set.of(),
new HashMap<>() + put() chains with Map.of(), and
new HashSet<>(Arrays.asList()) with Set.of() across 20 files.
Correctly skips shaded com.twitter.hpack code and array-parameter
conversions in Util.java and MediaTypes.java.
Result:
Cleaner code using Java 17 immutable collection factories.
Tests:
Not run - compile-only test file changes
References:
None - Java 17 API modernization
Report URL: https://github.com/apache/pekko-http/actions/runs/28198671647
With regards,
GitHub Actions via GitBox
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org