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

Replace com.google.common.base.Function (partly) #2200

Merged
merged 16 commits into from
Jun 6, 2023

Conversation

pks-1981
Copy link
Contributor

@pks-1981 pks-1981 commented May 31, 2023

Replace com.google.common.base.Function

References

Submitter checklist

  • The PR request is well described and justified, including the body and the references
  • The PR title represents the desired changelog entry
  • The repository's code style is followed (see the contributing guide)
  • Test coverage that demonstrates that the change works as expected
  • For new features, there's necessary documentation in this pull request or in a subsequent PR to wiremock.org

@pks-1981
Copy link
Contributor Author

pks-1981 commented May 31, 2023

@tomakehurst LoggedRequestTest is broken(((
but is not me)))

@tomakehurst
Copy link
Member

Sorry fixed it, if you want to rebase

@timtebeek
Copy link
Contributor

Quick reminder that there's this recipe to broadly replace guava:
https://docs.openrewrite.org/recipes/java/migrate/guava/noguava

And this recipe to specifically replace function:
https://docs.openrewrite.org/recipes/java/migrate/guava/preferjavautilfunction

Could be worth exploring either for this pull request.

@pks-1981
Copy link
Contributor Author

pks-1981 commented Jun 1, 2023

Quick reminder that there's this recipe to broadly replace guava: https://docs.openrewrite.org/recipes/java/migrate/guava/noguava

And this recipe to specifically replace function: https://docs.openrewrite.org/recipes/java/migrate/guava/preferjavautilfunction

Could be worth exploring either for this pull request.

Quick reminder that there's this recipe to broadly replace guava: https://docs.openrewrite.org/recipes/java/migrate/guava/noguava

And this recipe to specifically replace function: https://docs.openrewrite.org/recipes/java/migrate/guava/preferjavautilfunction

Could be worth exploring either for this pull request.

Hello
Do you mean make "com.google.common.base.Joiner" apart from this MR?
It's to small for MR, IMHO...

@timtebeek
Copy link
Contributor

Hello Do you mean make "com.google.common.base.Joiner" apart from this MR? It's to small for MR, IMHO...

I mean to say that some of the changes you're making here manually can also be made through automation. That might mean you can accomplish more in the same time.

Here's another recipe that creates some of the same changes I see you make here:
https://docs.openrewrite.org/recipes/java/cleanup/uselambdaforfunctionalinterface

@pks-1981
Copy link
Contributor Author

pks-1981 commented Jun 1, 2023

@tomakehurst @timtebeek
Please look at StringValuePatternTest.
I can remake it without com.google.common.base.Function. But in my opinion it does nothing ... or I'm debugging incorrectly)))

@tomakehurst tomakehurst merged commit c8301c2 into wiremock:master Jun 6, 2023
7 checks passed
@tomakehurst
Copy link
Member

Thanks!

@pks-1981 pks-1981 deleted the function_2 branch June 6, 2023 16:37
@oleg-nenashev oleg-nenashev added the chore Maintenance label Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants