-
Notifications
You must be signed in to change notification settings - Fork 213
Closed
Labels
for: eclipsesomething that is specific for Eclipsesomething that is specific for Eclipsefor: vscodesomething that is specific for VSCodesomething that is specific for VSCodetheme: refactoringtype: enhancement
Milestone
Description
Follow-up refinements from #1107:
In case I have something like:
@RequestMapping(path = "/something")
I get quick fixes presented:
- Replace with
@GetMapping
- Replace with
@PostMapping
etc. (looks all good to me).
In case I have something like:
@RequestMapping(path = "/something", method = RequestMethod.POST)
I get three quick fixes that look a bit strange in combination to each other:
- Replace
@RequestMapping
with specific@GetMapping
,@PostMapping
etc in file - Replace
@RequestMapping
with specific@GetMapping
,@PostMapping
etc in project - Replace with
@PostMapping
This doesn't look consistent to me. I would expect that the quick fix for the first two elements in this list (for "in file" and "in project") would also take into account that this is about @PostMapping
, and not random mappings. The quick fixes should look like:
- Replace with
@PostMapping
- Replace with
@PostMapping
in file - Replace with
@PostMapping
in project
Metadata
Metadata
Assignees
Labels
for: eclipsesomething that is specific for Eclipsesomething that is specific for Eclipsefor: vscodesomething that is specific for VSCodesomething that is specific for VSCodetheme: refactoringtype: enhancement