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/07/25 14:29:33 UTC

[GH] (pekko/avoid-anonymous-inner-classes-use-lambda): Workflow run "Pull Requests" is working again!

The GitHub Actions job "Pull Requests" on pekko.git/avoid-anonymous-inner-classes-use-lambda has succeeded.
Run started by GitHub user He-Pin (triggered by He-Pin).

Head commit for run:
d288c9c6bebec017fa5ebfc693dc0b40a23712b7 / 虎鸣 <he...@alibaba-inc.com>
refactor: replace anonymous inner classes with lambdas

Motivation:
Now that Scala 2.12 support has been dropped, we can use SAM (Single
Abstract Method) conversion to replace verbose anonymous inner classes
with concise lambda expressions across the codebase.

Modification:
Replace anonymous inner classes with lambda expressions for SAM types
including Runnable, Callable, Consumer, Comparator, Ordering, Predicate,
BiFunction, JFunction, JPredicate, and LongFunction across actor,
actor-typed, persistence, persistence-typed, remote, cluster,
cluster-sharding, cluster-typed, coordination, and discovery modules.
Remove unused imports that are no longer needed after the conversion.

Result:
Cleaner, more idiomatic Scala 2.13+ code with ~115 fewer lines while
maintaining identical runtime behavior.

Tests:
- sbt actor/compile actor-typed/compile persistence/compile persistence-typed/compile remote/compile cluster/compile cluster-sharding/compile cluster-typed/compile cluster-sharding-typed/compile coordination/compile discovery/compile
- sbt "actor-tests/testOnly org.apache.pekko.pattern.CircuitBreakerSpec" (63 passed)
- sbt "actor-tests/testOnly org.apache.pekko.event.*" (88 passed)
- sbt "persistence-typed-tests/testOnly org.apache.pekko.persistence.typed.javadsl.EventSourcedBehaviorJavaDslTest" (15 passed)

References:
Fixes #2201

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

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