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);
  }