From 9288067ea8c83c4ba66059ba4fe8b3ba62d2f13f Mon Sep 17 00:00:00 2001 From: swapy Date: Sun, 3 May 2020 11:31:19 +0530 Subject: [PATCH] Add missing @PathVariable declarations in examples Closes gh-25006 --- src/docs/asciidoc/web/webmvc.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/docs/asciidoc/web/webmvc.adoc b/src/docs/asciidoc/web/webmvc.adoc index 584cecdc1b..0a75908144 100644 --- a/src/docs/asciidoc/web/webmvc.adoc +++ b/src/docs/asciidoc/web/webmvc.adoc @@ -1634,7 +1634,7 @@ extracts the name, version, and file extension: .Java ---- @GetMapping("/{name:[a-z-]+}-{version:\\d\\.\\d\\.\\d}{ext:\\.[a-z]+}") - public void handle(@PathVariable String version, @PathVariable String ext) { + public void handle(@PathVariable String name, @PathVariable String version, @PathVariable String ext) { // ... } ---- @@ -1642,7 +1642,7 @@ extracts the name, version, and file extension: .Kotlin ---- @GetMapping("/{name:[a-z-]+}-{version:\\d\\.\\d\\.\\d}{ext:\\.[a-z]+}") - fun handle(@PathVariable version: String, @PathVariable ext: String) { + fun handle(@PathVariable name: String, @PathVariable version: String, @PathVariable ext: String) { // ... } ----