Reports redundant @PathVariable name declaration when it matches a parameter name.
The quick-fix removes the explicit name attribute from the annotation.
例:
@GetMapping("/{orderId}")
public Order getOrder(@PathVariable("orderId") Long orderId)
return return orderRepository.findOne(orderId);
}
クイックフィックス適用後の結果は次のようになります。
@GetMapping("/{orderId}")
public Order getOrder(@PathVariable Long orderId)
return orderRepository.findOne(orderId);
}