Skip to content

refactor: remove deprecated scalaPartialFunction (since 1.2.0)#778

Draft
He-Pin wants to merge 1 commit into
apache:mainfrom
He-Pin:remove/deprecated-scalaPartialFunction
Draft

refactor: remove deprecated scalaPartialFunction (since 1.2.0)#778
He-Pin wants to merge 1 commit into
apache:mainfrom
He-Pin:remove/deprecated-scalaPartialFunction

Conversation

@He-Pin

@He-Pin He-Pin commented Jul 4, 2026

Copy link
Copy Markdown
Member

Motivation

scalaPartialFunction was deprecated since pekko-grpc 1.2.0 as it is no longer needed since support for Scala 2.11 was dropped.

Modification

Remove the deprecated scalaPartialFunction method and inline its logic into scalaAnonymousPartialFunction. Remove unused @nowarn import.

Result

Cleaner API surface with one less deprecated method.

Tests

Not run - trivial inline refactor

References

None - deprecated API cleanup

@He-Pin He-Pin marked this pull request as draft July 4, 2026 20:33
@He-Pin He-Pin marked this pull request as ready for review July 5, 2026 04:15
Motivation:
scalaPartialFunction was deprecated since pekko-grpc 1.2.0 as it is no longer
needed since support for Scala 2.11 was dropped.

Modification:
Remove the deprecated scalaPartialFunction method and inline its logic into
scalaAnonymousPartialFunction. Remove unused @nowarn import.
Add MiMa filter for the removed method.

Result:
Cleaner API surface with one less deprecated method.

Tests:
Not run - trivial inline refactor

References:
None - deprecated API cleanup
@He-Pin He-Pin force-pushed the remove/deprecated-scalaPartialFunction branch from 43138bd to 33c2cea Compare July 5, 2026 05:45
@pjfanning

Copy link
Copy Markdown
Member

This was only recently deprecated and I prefer to keep deprecated code around for a while.

@He-Pin He-Pin marked this pull request as draft July 5, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants