パラメータ名と一致する時に、冗長な@PathVariable名の宣言を報告します。
クイックフィックスはアノテーションから明示的な名前属性を削除します。
例:
@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);
}