From 7f7f24949b01df655d7f5716b06a7ca060a8dc73 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Wed, 9 Dec 2015 15:13:41 +0100 Subject: [PATCH] Polishing --- .../http/server/ServletServerHttpRequest.java | 5 ++--- src/asciidoc/core-beans.adoc | 4 ++-- src/asciidoc/integration.adoc | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/http/server/ServletServerHttpRequest.java b/spring-web/src/main/java/org/springframework/http/server/ServletServerHttpRequest.java index fbbe1446d65..2b5ac8a93e8 100644 --- a/spring-web/src/main/java/org/springframework/http/server/ServletServerHttpRequest.java +++ b/spring-web/src/main/java/org/springframework/http/server/ServletServerHttpRequest.java @@ -175,7 +175,6 @@ public class ServletServerHttpRequest implements ServerHttpRequest { } - private static boolean isFormPost(HttpServletRequest request) { String contentType = request.getContentType(); return (contentType != null && contentType.contains(FORM_CONTENT_TYPE) && @@ -185,8 +184,8 @@ public class ServletServerHttpRequest implements ServerHttpRequest { /** * Use {@link javax.servlet.ServletRequest#getParameterMap()} to reconstruct the * body of a form 'POST' providing a predictable outcome as opposed to reading - * from the body, which can fail if any other code has used ServletRequest - * to access a parameter thus causing the input stream to be "consumed". + * from the body, which can fail if any other code has used the ServletRequest + * to access a parameter, thus causing the input stream to be "consumed". */ private static InputStream getBodyFromServletRequestParameters(HttpServletRequest request) throws IOException { ByteArrayOutputStream bos = new ByteArrayOutputStream(1024); diff --git a/src/asciidoc/core-beans.adoc b/src/asciidoc/core-beans.adoc index b93738bec6d..98b5c7ee17c 100644 --- a/src/asciidoc/core-beans.adoc +++ b/src/asciidoc/core-beans.adoc @@ -8138,8 +8138,8 @@ available to the context so one can use them for conditional event processing: | __argument name__ | evaluation context -| Name of any of the method argument. If for some reason the names are not available - (ex: no debug information), the argument names are also available under the `#a<#arg>` +| Name of any of the method arguments. If for some reason the names are not available + (e.g. no debug information), the argument names are also available under the `#a<#arg>` where __#arg__ stands for the argument index (starting from 0). | `#iban` or `#a0` (one can also use `#p0` or `#p<#arg>` notation as an alias). |=== diff --git a/src/asciidoc/integration.adoc b/src/asciidoc/integration.adoc index 24bbc390846..febfb656b7f 100644 --- a/src/asciidoc/integration.adoc +++ b/src/asciidoc/integration.adoc @@ -8462,8 +8462,8 @@ conditional computations: | __argument name__ | evaluation context -| Name of any of the method argument. If for some reason the names are not available - (ex: no debug information), the argument names are also available under the `#a<#arg>` +| Name of any of the method arguments. If for some reason the names are not available + (e.g. no debug information), the argument names are also available under the `#a<#arg>` where __#arg__ stands for the argument index (starting from 0). | `#iban` or `#a0` (one can also use `#p0` or `#p<#arg>` notation as an alias).