Skip to content

Commit 5b1a84e

Browse files
committed
Polish contribution
See gh-28789
1 parent 6985fa8 commit 5b1a84e

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

spring-webmvc/src/main/java/org/springframework/web/servlet/function/support/RouterFunctionMapping.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ public void afterPropertiesSet() throws Exception {
150150
}
151151

152152
/**
153-
* Detect an all {@linkplain RouterFunction router functions} in the
154-
* current application context.
153+
* Detect all {@linkplain RouterFunction router functions} in the current
154+
* application context.
155155
*/
156156
private void initRouterFunctions() {
157157
List<RouterFunction<?>> routerFunctions = obtainApplicationContext()

spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/RequestMappingInfoHandlerMapping.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ public PartialMatchHelper(Set<RequestMappingInfo> infos, HttpServletRequest requ
297297
}
298298

299299
/**
300-
* Whether there is any partial matches.
300+
* Whether there are any partial matches.
301301
*/
302302
public boolean isEmpty() {
303303
return this.partialMatches.isEmpty();

spring-webmvc/src/main/java/org/springframework/web/servlet/resource/PathResourceResolver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ else if (logger.isWarnEnabled()) {
204204

205205
/**
206206
* Perform additional checks on a resolved resource beyond checking whether the
207-
* resources exists and is readable. The default implementation also verifies
207+
* resource exists and is readable. The default implementation also verifies
208208
* the resource is either under the location relative to which it was found or
209-
* is under one of the {@link #setAllowedLocations allowed locations}.
209+
* is under one of the {@linkplain #setAllowedLocations allowed locations}.
210210
* @param resource the resource to check
211211
* @param location the location relative to which the resource was found
212212
* @return "true" if resource is in a valid location, "false" otherwise.

spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ protected void initAllowedLocations() {
525525
/**
526526
* Initialize the strategy to use to determine the media type for a resource.
527527
* @deprecated as of 5.2.4 this method returns {@code null}, and if a
528-
* subclass returns an actual instance,the instance is used only as a
528+
* subclass returns an actual instance, the instance is used only as a
529529
* source of media type mappings, if it contains any. Please, use
530530
* {@link #setMediaTypes(Map)} instead, or if you need to change behavior,
531531
* you can override {@link #getMediaType(HttpServletRequest, Resource)}.

spring-webmvc/src/main/java/org/springframework/web/servlet/view/RedirectView.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -637,11 +637,11 @@ else if (attributeStatusCode != null) {
637637
/**
638638
* Whether the given targetUrl has a host that is a "foreign" system in which
639639
* case {@link HttpServletResponse#encodeRedirectURL} will not be applied.
640-
* This method returns {@code true} if the {@link #setHosts(String[])}
640+
* <p>This method returns {@code true} if the {@link #setHosts(String[])}
641641
* property is configured and the target URL has a host that does not match.
642642
* @param targetUrl the target redirect URL
643-
* @return {@code true} the target URL has a remote host, {@code false} if
644-
* the URL does not have a host or the "host" property is not configured.
643+
* @return {@code true} if the target URL has a remote host, {@code false} if
644+
* the URL does not have a host or the "host" property is not configured
645645
* @since 4.3
646646
*/
647647
protected boolean isRemoteHost(String targetUrl) {

spring-webmvc/src/main/java/org/springframework/web/servlet/view/document/AbstractPdfStamperView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ protected PdfReader readPdfResource() throws IOException {
100100
*
101101
* // set some values on the form
102102
* form.setField("field1", "value1");
103-
* form.setField("field2", "Value2");
103+
* form.setField("field2", "value2");
104104
*
105105
* // set the disposition and filename
106106
* response.setHeader("Content-disposition", "attachment; FILENAME=someName.pdf");</pre>

0 commit comments

Comments
 (0)