Skip to content

Commit

Permalink
Polish contribution
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Jul 12, 2022
1 parent 31c6965 commit 1970480
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ else if (logger.isWarnEnabled()) {

/**
* Perform additional checks on a resolved resource beyond checking whether the
* resources exist and is readable. The default implementation also verifies
* resource exists and is readable. The default implementation also verifies
* the resource is either under the location relative to which it was found or
* is under one of the {@link #setAllowedLocations allowed locations}.
* @param resource the resource to check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public PartialMatchHelper(Set<RequestMappingInfo> infos, ServerWebExchange excha


/**
* Whether there is any partial matches.
* Whether there are any partial matches.
*/
public boolean isEmpty() {
return this.partialMatches.isEmpty();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,10 @@ protected Mono<Void> sendRedirect(String targetUrl, ServerWebExchange exchange)
/**
* Whether the given targetUrl has a host that is a "foreign" system in which
* case {@link javax.servlet.http.HttpServletResponse#encodeRedirectURL} will not be applied.
* This method returns {@code true} if the {@link #setHosts(String[])}
* <p>This method returns {@code true} if the {@link #setHosts(String[])}
* property is configured and the target URL has a host that does not match.
* @param targetUrl the target redirect URL
* @return {@code true} the target URL has a remote host, {@code false} if
* @return {@code true} if the target URL has a remote host, {@code false} if
* the URL does not have a host or the "host" property is not configured
*/
protected boolean isRemoteHost(String targetUrl) {
Expand Down

0 comments on commit 1970480

Please sign in to comment.