Find @PathVariable parameters without an explicit name
Proprietary@PathVariable name: String works only as long as the JVM preserves parameter names, which requires the -parameters javac flag and -java-parameters kotlinc flag. If either is missing, Spring resolves the path variable by ordinal — a footgun on rename. Set the name explicitly: @PathVariable("id") id: String.
org. openrewrite. kotlin. spring. FindPathVariableWithoutName$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. spring. FindPathVariableWithoutName$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.