Skip to content

Commit

Permalink
Replace @required on setters with @Autowired (#612)
Browse files Browse the repository at this point in the history
* Tests only

* Reformat

* Update src/main/java/org/openrewrite/java/spring/RequiredFieldIntoConstructorParameter.java

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update src/testWithSpringBoot_2_1/java/org/openrewrite/java/spring/RequiredFieldIntoConstructorParameterTest.java

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update src/testWithSpringBoot_2_1/java/org/openrewrite/java/spring/RequiredFieldIntoConstructorParameterTest.java

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update src/testWithSpringBoot_2_1/java/org/openrewrite/java/spring/RequiredFieldIntoConstructorParameterTest.java

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Polish test code

* Polish code

* Refactor test according to new specs

* Add first version of recipe

* Polish code

* Remove recipe in favour of change type

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
nielsdebruin and github-actions[bot] authored Oct 29, 2024
1 parent 6e795b0 commit b0a95c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/resources/META-INF/rewrite/spring-framework-51.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ recipeList:
artifactId: "*"
newVersion: 5.1.x
overrideManagedVersion: false
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.springframework.beans.factory.annotation.Required
newFullyQualifiedTypeName: org.springframework.beans.factory.annotation.Autowired
ignoreDefinition: true

0 comments on commit b0a95c8

Please sign in to comment.