Skip to content

Commit

Permalink
Update rules/S6856/java/rule.adoc
Browse files Browse the repository at this point in the history
Co-authored-by: erwan-serandour <erwan.serandour@sonarsource.com>
  • Loading branch information
1 parent 028090a commit c6b6332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/S6856/java/rule.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ They are part of the Spring Web module and are commonly used to define the route

If a method has a path template containing a placeholder, like "/api/resource/{id}", and there's no `@PathVariable` annotation on a method parameter to capture the id path variable, Spring will disregard the id variable.

This rule will raise an issue if a method does not have corresponding `@PathVariable` annotations and path templates placeholders.
This rule will raise an issue if a method has a path template with a placeholder, but no corresponding `@PathVariable`, or vice-versa.

== How to fix it

Expand Down

0 comments on commit c6b6332

Please sign in to comment.