Skip to content

Commit 23aeba0

Browse files
kamilszymanskibclozel
authored andcommitted
Fix typos in WebRequest.checkNotModified docs
Closes gh-1035
1 parent 6316a35 commit 23aeba0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

spring-web/src/main/java/org/springframework/web/context/request/WebRequest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public interface WebRequest extends RequestAttributes {
140140
* and HTTP status when applicable.
141141
* <p>Typical usage:
142142
* <pre class="code">
143-
* public String myHandleMethod(WebRequest webRequest, Model model) {
143+
* public String myHandleMethod(WebRequest request, Model model) {
144144
* long lastModified = // application-specific calculation
145145
* if (request.checkNotModified(lastModified)) {
146146
* // shortcut exit - no further processing necessary
@@ -177,7 +177,7 @@ public interface WebRequest extends RequestAttributes {
177177
* and HTTP status when applicable.
178178
* <p>Typical usage:
179179
* <pre class="code">
180-
* public String myHandleMethod(WebRequest webRequest, Model model) {
180+
* public String myHandleMethod(WebRequest request, Model model) {
181181
* String eTag = // application-specific calculation
182182
* if (request.checkNotModified(eTag)) {
183183
* // shortcut exit - no further processing necessary
@@ -208,7 +208,7 @@ public interface WebRequest extends RequestAttributes {
208208
* response headers, and HTTP status when applicable.
209209
* <p>Typical usage:
210210
* <pre class="code">
211-
* public String myHandleMethod(WebRequest webRequest, Model model) {
211+
* public String myHandleMethod(WebRequest request, Model model) {
212212
* String eTag = // application-specific calculation
213213
* long lastModified = // application-specific calculation
214214
* if (request.checkNotModified(eTag, lastModified)) {

src/docs/asciidoc/web/webmvc.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4813,7 +4813,7 @@ as the following example shows:
48134813
.Java
48144814
----
48154815
@RequestMapping
4816-
public String myHandleMethod(WebRequest webRequest, Model model) {
4816+
public String myHandleMethod(WebRequest request, Model model) {
48174817
48184818
long eTag = ... // <1>
48194819
@@ -4833,7 +4833,7 @@ as the following example shows:
48334833
.Kotlin
48344834
----
48354835
@RequestMapping
4836-
fun myHandleMethod(webRequest: WebRequest, model: Model): String? {
4836+
fun myHandleMethod(request: WebRequest, model: Model): String? {
48374837
48384838
val eTag: Long = ... // <1>
48394839

0 commit comments

Comments
 (0)