diff --git a/framework-docs/src/docs/asciidoc/web/webmvc.adoc b/framework-docs/src/docs/asciidoc/web/webmvc.adoc index 4d3072dbada..4099b70806c 100644 --- a/framework-docs/src/docs/asciidoc/web/webmvc.adoc +++ b/framework-docs/src/docs/asciidoc/web/webmvc.adoc @@ -4455,13 +4455,7 @@ as the following example shows: ---- @PostMapping public Callable processUpload(final MultipartFile file) { - - return new Callable() { - public String call() throws Exception { - // ... - return "someView"; - } - }; + return () -> "someView"; } ---- [source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]