Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added HTTPMethod Enum to Class Rule #178

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 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
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,21 @@
url: https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-6.0-Release-Notes#web-applications
- 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-00002
category: mandatory
jmle marked this conversation as resolved.
Show resolved Hide resolved
effort: 1
labels:
- konveyor.io/source=spring5
- konveyor.io/target=spring6+
when:
java.referenced:
pattern: org.springframework.http.HttpMethod
jmle marked this conversation as resolved.
Show resolved Hide resolved
location: IMPORT
description: Refactor HttpMethod from enum to class
jmle marked this conversation as resolved.
Show resolved Hide resolved
message: "HTTPMethod has been updated from an ENUM to a CLASS"
jmle marked this conversation as resolved.
Show resolved Hide resolved
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
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ 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 has been updated from an ENUM to a CLASS"
Loading