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 / 虎鸣 <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to