Closed
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