Fix typos in WebRequest.checkNotModified docs

Closes gh-1035
This commit is contained in:
Kamil Szymanski 2016-04-14 17:16:15 +02:00 committed by Brian Clozel
parent 6316a353bb
commit 23aeba0e46
2 changed files with 5 additions and 5 deletions

View File

@ -140,7 +140,7 @@ public interface WebRequest extends RequestAttributes {
* and HTTP status when applicable.
* <p>Typical usage:
* <pre class="code">
* 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.
* <p>Typical usage:
* <pre class="code">
* 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.
* <p>Typical usage:
* <pre class="code">
* 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)) {

View File

@ -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>