Conversation
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
| - org.openrewrite.java.ChangeType: | ||
| oldFullyQualifiedTypeName: org.geotools.data.FeatureSource | ||
| newFullyQualifiedTypeName: org.geotools.api.data.FeatureSource | ||
| - org.openrewrite.java.ChangeType: | ||
| oldFullyQualifiedTypeName: org.geotools.data.Query | ||
| newFullyQualifiedTypeName: org.geotools.api.data.Query | ||
| - org.openrewrite.java.ChangeType: | ||
| oldFullyQualifiedTypeName: org.geotools.data.QueryCapabilities | ||
| newFullyQualifiedTypeName: org.geotools.api.data.QueryCapabilities | ||
| - org.openrewrite.java.ChangeType: | ||
| oldFullyQualifiedTypeName: org.geotools.data.FeatureWriter | ||
| newFullyQualifiedTypeName: org.geotools.api.data.FeatureWriter | ||
| - org.openrewrite.java.ChangeType: | ||
| oldFullyQualifiedTypeName: org.geotools.data.Transaction | ||
| newFullyQualifiedTypeName: org.geotools.api.data.Transaction | ||
| - org.openrewrite.java.ChangeType: | ||
| oldFullyQualifiedTypeName: org.geotools.data.DataStoreFinder | ||
| newFullyQualifiedTypeName: org.geotools.api.data.DataStoreFinder | ||
| - org.openrewrite.java.ChangeType: | ||
| oldFullyQualifiedTypeName: org.geotools.data.DataAccess | ||
| newFullyQualifiedTypeName: org.geotools.api.data.DataAccess | ||
| - org.openrewrite.java.ChangeType: | ||
| oldFullyQualifiedTypeName: org.geotools.data.DataStore | ||
| newFullyQualifiedTypeName: org.geotools.api.data.DataStore | ||
| - org.openrewrite.java.ChangeType: | ||
| oldFullyQualifiedTypeName: org.geotools.data.FileDataStoreFinder | ||
| newFullyQualifiedTypeName: org.geotools.api.data.FileDataStoreFinder |
There was a problem hiding this comment.
I wonder if all of these can be replaced with
- org.openrewrite.java.ChangePackage:
oldPackageName: org.geotools.data
newPackageName: org.geotools.data.api
recursive: false
There was a problem hiding this comment.
The reason why I list it this way is that what is not listed does not need to be modified.
| - org.openrewrite.java.ChangeType: | ||
| oldFullyQualifiedTypeName: org.geotools.api.data.Join | ||
| newFullyQualifiedTypeName: org.geotools.data.Join |
There was a problem hiding this comment.
Judging by the others I'm seeing, isn't this the wrong way round?
| - org.openrewrite.java.ChangeType: | |
| oldFullyQualifiedTypeName: org.geotools.api.data.Join | |
| newFullyQualifiedTypeName: org.geotools.data.Join | |
| - org.openrewrite.java.ChangeType: | |
| oldFullyQualifiedTypeName: org.geotools.data.Join | |
| newFullyQualifiedTypeName: org.geotools.api.data.Join |
There was a problem hiding this comment.
This might be the class I previously identified that didn't need modification; we can remove it for now.
timtebeek
left a comment
There was a problem hiding this comment.
Thanks for sharing your recipe here @ChenyuWang98 . I do wonder if perhaps this would be better aimed as a contribution to https://github.com/geotools/geotools.
Quite a few projects similarly maintain their own recipes, as seen on:
https://docs.openrewrite.org/reference/community-recipes#projects
In this case I don't think GeoTools would fit in with the other recipes in rewrite-migrate-java, and perhaps doesn't quite meet the bar for us to spin up and maintain a separate repository for it.
Let us know what kind of feedback you get from GeoTools themselves, and we can reevaluate from there.
|
Okay, I'll ask the geotools project. |
What's changed?
What's your motivation?
Anything in particular you'd like reviewers to focus on?
Anyone you would like to review specifically?
Have you considered any alternatives or workarounds?
Any additional context
Checklist