diff --git a/default/generated/spring-framework/spring-framework-5.x-to-6.0-web-applications.yaml b/default/generated/spring-framework/spring-framework-5.x-to-6.0-web-applications.yaml index 2bbb8d6..5b1d5a2 100644 --- a/default/generated/spring-framework/spring-framework-5.x-to-6.0-web-applications.yaml +++ b/default/generated/spring-framework/spring-framework-5.x-to-6.0-web-applications.yaml @@ -50,6 +50,7 @@ - title: 'Specific Spring Framwork change' url: https://github.com/spring-projects/spring-framework/issues/28552 + - ruleID: spring-framework-5.x-to-6.0-web-applications-00010 category: mandatory effort: 1 @@ -78,6 +79,23 @@ - title: 'Spring 6.0 migration guide' url: https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-6.0-Release-Notes#web-applications +- ruleID: spring-framework-5.x-to-6.0-web-applications-00002 + category: potential + effort: 1 + labels: + - konveyor.io/source=spring5 + - konveyor.io/target=spring6+ + when: + java.referenced: + pattern: org.springframework.http.HttpMethod + location: IMPORT + description: HttpMethod has be upgraded from an ENUM to a CLASS + message: "HttpMethod is now a class and no longer an enum. Though the public API has been maintained, some migration might be necessary (i.e. change from EnumSet to Set, use if else instead of switch). Check the specific Spring Framework change for more information in the links" + links: + - title: 'Specific Spring Framework Change' + url: https://github.com/spring-projects/spring-framework/issues/27697 + - title: 'Spring Documentation' + url: https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/http/HttpMethod.html - ruleID: spring-framework-5.x-to-6.0-web-applications-00030 category: mandatory diff --git a/default/generated/spring-framework/tests/data/web-applications/src/main/java/org/konveyor/controller/Controller.java b/default/generated/spring-framework/tests/data/web-applications/src/main/java/org/konveyor/controller/Controller.java index 142e057..038ffc1 100644 --- a/default/generated/spring-framework/tests/data/web-applications/src/main/java/org/konveyor/controller/Controller.java +++ b/default/generated/spring-framework/tests/data/web-applications/src/main/java/org/konveyor/controller/Controller.java @@ -2,6 +2,7 @@ import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; +import org.springframework.http.HttpMethod; @RestController public class Controller { diff --git a/default/generated/spring-framework/tests/spring-framework-5.x-to-6.0-web-applications.test.yaml b/default/generated/spring-framework/tests/spring-framework-5.x-to-6.0-web-applications.test.yaml index 41ab16c..018c942 100644 --- a/default/generated/spring-framework/tests/spring-framework-5.x-to-6.0-web-applications.test.yaml +++ b/default/generated/spring-framework/tests/spring-framework-5.x-to-6.0-web-applications.test.yaml @@ -17,6 +17,12 @@ tests: mode: "source-only" hasIncidents: exactly: 1 +- ruleID: spring-framework-5.x-to-6.0-web-applications-00002 + testCases: + - name: tc-1 + hasIncidents: + exactly: 1 + messageMatches: "HttpMethod is now a class and no longer an enum. Though the public API has been maintained, some migration might be necessary (i.e. change from EnumSet to Set, use if else instead of switch). Check the specific Spring Framework change for more information in the links" - ruleID: spring-framework-5.x-to-6.0-web-applications-00030 testCases: - name: tc-1