Fix typos related to indefinite articles

Closes gh-23555
This commit is contained in:
康智冬
2019-09-01 21:45:49 +08:00
committed by Sam Brannen
parent f05f993cc6
commit a6f4862f13
11 changed files with 12 additions and 12 deletions

View File

@@ -1909,7 +1909,7 @@ public abstract class AbstractPropertyAccessorTests {
@SuppressWarnings("unused")
private static class DifferentTestBean extends TestBean {
// class to test naming of beans in a error message
// class to test naming of beans in an error message
}
@SuppressWarnings("unused")

View File

@@ -20,7 +20,7 @@ import java.io.IOException;
import java.io.OutputStream;
/**
* Represents a HTTP output message that allows for setting a streaming body.
* Represents an HTTP output message that allows for setting a streaming body.
* Note that such messages typically do not support {@link #getBody()} access.
*
* @author Arjen Poutsma

View File

@@ -202,7 +202,7 @@ public class HttpComponentsHttpInvokerRequestExecutor extends AbstractHttpInvoke
}
/**
* Create a HttpPost for the given configuration.
* Create an HttpPost for the given configuration.
* <p>The default implementation creates a standard HttpPost with
* "application/x-java-serialized-object" as "Content-Type" header.
* @param config the HTTP invoker configuration that specifies the

View File

@@ -352,7 +352,7 @@ public abstract class RequestPredicates {
void pathExtension(String extension);
/**
* Receive notification of a HTTP header predicate.
* Receive notification of an HTTP header predicate.
* @param name the name of the HTTP header to check
* @param value the desired value of the HTTP header
* @see RequestPredicates#headers(Predicate)

View File

@@ -81,7 +81,7 @@ public interface HandlerInterceptor {
* <p>DispatcherServlet processes a handler in an execution chain, consisting
* of any number of interceptors, with the handler itself at the end.
* With this method, each interceptor can decide to abort the execution chain,
* typically sending a HTTP error or writing a custom response.
* typically sending an HTTP error or writing a custom response.
* <p><strong>Note:</strong> special considerations apply for asynchronous
* request processing. For more details see
* {@link org.springframework.web.servlet.AsyncHandlerInterceptor}.

View File

@@ -347,7 +347,7 @@ public abstract class RequestPredicates {
void pathExtension(String extension);
/**
* Receive notification of a HTTP header predicate.
* Receive notification of an HTTP header predicate.
* @param name the name of the HTTP header to check
* @param value the desired value of the HTTP header
* @see RequestPredicates#headers(Predicate)

View File

@@ -401,7 +401,7 @@ public class DefaultHandlerExceptionResolver extends AbstractHandlerExceptionRes
/**
* Handle the case where a {@linkplain org.springframework.http.converter.HttpMessageConverter message converter}
* cannot read from a HTTP request.
* cannot read from an HTTP request.
* <p>The default implementation sends an HTTP 400 error, and returns an empty {@code ModelAndView}.
* Alternatively, a fallback view could be chosen, or the HttpMessageNotReadableException could be
* rethrown as-is.
@@ -422,7 +422,7 @@ public class DefaultHandlerExceptionResolver extends AbstractHandlerExceptionRes
/**
* Handle the case where a
* {@linkplain org.springframework.http.converter.HttpMessageConverter message converter}
* cannot write to a HTTP request.
* cannot write to an HTTP request.
* <p>The default implementation sends an HTTP 500 error, and returns an empty {@code ModelAndView}.
* Alternatively, a fallback view could be chosen, or the HttpMessageNotWritableException could
* be rethrown as-is.

View File

@@ -70,7 +70,7 @@ public class ServletUriComponentsBuilder extends UriComponentsBuilder {
}
// Factory methods based on a HttpServletRequest
// Factory methods based on an HttpServletRequest
/**
* Prepare a builder from the host, port, scheme, and context path of the

View File

@@ -55,7 +55,7 @@ import org.springframework.web.util.WebUtils;
* but this behavior can be changed by overriding the
* {@link #isEligibleProperty(String, Object)} method.
*
* <p>A URL for this view is supposed to be a HTTP redirect URL, i.e.
* <p>A URL for this view is supposed to be an HTTP redirect URL, i.e.
* suitable for HttpServletResponse's {@code sendRedirect} method, which
* is what actually does the redirect if the HTTP 1.0 flag is on, or via sending
* back an HTTP 303 code - if the HTTP 1.0 compatibility flag is off.

View File

@@ -147,7 +147,7 @@ public class ResourceBundleViewResolver extends AbstractCachingViewResolver
* <p>This avoids repeated "yyy1.(parent)=xxx", "yyy2.(parent)=xxx" definitions
* in the bundle, especially if all defined views share the same parent.
* <p>The parent will typically define the view class and common attributes.
* Concrete views might simply consist of an URL definition then:
* Concrete views might simply consist of a URL definition then:
* a la "yyy1.url=/my.jsp", "yyy2.url=/your.jsp".
* <p>View definitions that define their own parent or carry their own
* class can still override this. Strictly speaking, the rule that a

View File

@@ -130,7 +130,7 @@ since the later requires a reference to the outer class.
== Annotations
The Spring Framework also takes advantage of https://kotlinlang.org/docs/reference/null-safety.html[Kotlin null-safety]
to determine if a HTTP parameter is required without having to explicitly
to determine if an HTTP parameter is required without having to explicitly
define the `required` attribute. That means `@RequestParam name: String?` is treated
as not required and, conversely, `@RequestParam name: String` is treated as being required.
This feature is also supported on the Spring Messaging `@Header` annotation.