Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use designated Scala methods for converter utils #393

Merged
merged 1 commit into from
Jan 1, 2024

Conversation

mdedetrich
Copy link
Contributor

@mdedetrich mdedetrich commented Jan 1, 2024

This PR is a response to apache/pekko#894, specifically rather than using the Java designed converter methods within Scala sources we use the Scala ones so that when the project is compiled with Scala 3 it gets inlined.

Note that in the case of BasicDirectives, the reason why pekko-http was using the designated Java methods in the first place is due to ambiguous implicit imports which is why CompletionStageOps is being used rather than the typical use of extension methods within implicit class.

@laglangyue
Copy link
Contributor

lgtm

Copy link
Member

@He-Pin He-Pin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@mdedetrich mdedetrich merged commit 4f80b1e into apache:main Jan 1, 2024
10 checks passed
@mdedetrich mdedetrich deleted the use-scala-converter-methods branch January 1, 2024 03:35
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.

3 participants