-
Rename/replace all references of class1.method1 with class2.method2 using open rewrite |
Beta Was this translation helpful? Give feedback.
Answered by
timtebeek
Nov 20, 2023
Replies: 1 comment
-
You can combine existing building block recipes through our recipe builder type: specs.openrewrite.org/v1beta/recipe
name: com.github.timtebeek
displayName: Rename class and method
description: Example
recipeList:
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: foo.Class1
newFullyQualifiedTypeName: bar.Class2
- org.openrewrite.java.ChangeMethodName:
methodPattern: bar.Class2 foo()
newMethodName: bar.Class2 bar() There's more documentation available here: https://docs.openrewrite.org/authoring-recipes/types-of-recipes Hope that helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
timtebeek
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can combine existing building block recipes through our recipe builder
There's more documentation available here: https://docs.openrewrite.org/authoring-recipes/types-of-recipes
Hope that helps!