diff --git a/spring-web/src/main/java/org/springframework/web/context/request/WebRequest.java b/spring-web/src/main/java/org/springframework/web/context/request/WebRequest.java index 7e6bb294636..6c422a53da8 100644 --- a/spring-web/src/main/java/org/springframework/web/context/request/WebRequest.java +++ b/spring-web/src/main/java/org/springframework/web/context/request/WebRequest.java @@ -140,7 +140,7 @@ public interface WebRequest extends RequestAttributes { * and HTTP status when applicable. *
Typical usage: *
- * public String myHandleMethod(WebRequest webRequest, Model model) {
+ * public String myHandleMethod(WebRequest request, Model model) {
* long lastModified = // application-specific calculation
* if (request.checkNotModified(lastModified)) {
* // shortcut exit - no further processing necessary
@@ -177,7 +177,7 @@ public interface WebRequest extends RequestAttributes {
* and HTTP status when applicable.
* Typical usage:
*
- * public String myHandleMethod(WebRequest webRequest, Model model) {
+ * public String myHandleMethod(WebRequest request, Model model) {
* String eTag = // application-specific calculation
* if (request.checkNotModified(eTag)) {
* // shortcut exit - no further processing necessary
@@ -208,7 +208,7 @@ public interface WebRequest extends RequestAttributes {
* response headers, and HTTP status when applicable.
* Typical usage:
*
- * public String myHandleMethod(WebRequest webRequest, Model model) {
+ * public String myHandleMethod(WebRequest request, Model model) {
* String eTag = // application-specific calculation
* long lastModified = // application-specific calculation
* if (request.checkNotModified(eTag, lastModified)) {
diff --git a/src/docs/asciidoc/web/webmvc.adoc b/src/docs/asciidoc/web/webmvc.adoc
index 739d769092d..d6f2f2522f1 100644
--- a/src/docs/asciidoc/web/webmvc.adoc
+++ b/src/docs/asciidoc/web/webmvc.adoc
@@ -4813,7 +4813,7 @@ as the following example shows:
.Java
----
@RequestMapping
- public String myHandleMethod(WebRequest webRequest, Model model) {
+ public String myHandleMethod(WebRequest request, Model model) {
long eTag = ... // <1>
@@ -4833,7 +4833,7 @@ as the following example shows:
.Kotlin
----
@RequestMapping
- fun myHandleMethod(webRequest: WebRequest, model: Model): String? {
+ fun myHandleMethod(request: WebRequest, model: Model): String? {
val eTag: Long = ... // <1>