The GitHub Actions job "Pull Requests" on 
pekko.git/refactor/setOf-streamOfStreams has succeeded.
Run started by GitHub user He-Pin (triggered by He-Pin).

Head commit for run:
b94d453d087b63942be7b78243926147ccfdd1c3 / 虎鸣 <[email protected]>
refactor: simplify Collections.unmodifiableSet(emptySet()) to Set.of()

Motivation:
StreamOfStreams.scala uses 
Collections.unmodifiableSet(Collections.emptySet[Any])
which is two method calls to create an immutable empty set.

Modification:
Replace with java.util.Set.of[Any]() which is a single call that already
returns an immutable empty set (JDK 9 factory). Remove the unused
java.util.Collections import.

Result:
Cleaner code with one call instead of two. Both approaches produce
immutable empty sets with identical semantics.

Tests:
sbt "stream/compile" — passed

References:
Refs #3136

Report URL: https://github.com/apache/pekko/actions/runs/27995935349

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to