Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/main/resources/META-INF/rewrite/spring-framework-70.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,9 @@ recipeList:
newVersion: 7.0.x
- org.openrewrite.java.testing.junit6.JUnit5to6Migration
- org.openrewrite.java.jackson.UpgradeJackson_2_3
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: 'org.springframework.lang.Nullable'
newFullyQualifiedTypeName: 'org.jspecify.annotations.Nullable'
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: 'org.springframework.lang.NonNull'
newFullyQualifiedTypeName: 'org.jspecify.annotations.NonNull'
Copy link
Member

Choose a reason for hiding this comment

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

Might make sense to use the existing recipe we have here:
https://docs.openrewrite.org/recipes/java/jspecify/migratefromspringframeworkannotations

Suggested change
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: 'org.springframework.lang.Nullable'
newFullyQualifiedTypeName: 'org.jspecify.annotations.Nullable'
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: 'org.springframework.lang.NonNull'
newFullyQualifiedTypeName: 'org.jspecify.annotations.NonNull'
- org.openrewrite.java.jspecify.MigrateFromSpringFrameworkAnnotations

You'll want to add a dependency on rewrite-jackson here as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@timtebeek Thanks for the suggestion. The dependency on rewrite-jackson is already added by #766 correct ?