Inspectopedia Help

Unresolved @PathVariable reference

Reports @PathVariable parameters that are declared in a method signature and missing in the URL path or vise versa. The quick-fix adds the missing parameter.

Example:

@Get("/path/{myVariable}/") public String handler(@PathVariable String name_is_not_equal_to_myVariable) { return "..."; }

After the quick-fix is applied the result looks like:

@Get("/path/{myVariable}/") public String handler(@PathVariable String myVariable) { return "..."; }

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Micronaut, 233.SNAPSHOT

Last modified: 13 July 2023