Polish contribution

See gh-28790
This commit is contained in:
Sam Brannen 2022-07-12 11:56:01 +02:00
parent 31c6965c7f
commit 19704805fd
3 changed files with 4 additions and 4 deletions

View File

@ -146,7 +146,7 @@ public class PathResourceResolver extends AbstractResourceResolver {
/** /**
* Perform additional checks on a resolved resource beyond checking whether the * 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 * the resource is either under the location relative to which it was found or
* is under one of the {@link #setAllowedLocations allowed locations}. * is under one of the {@link #setAllowedLocations allowed locations}.
* @param resource the resource to check * @param resource the resource to check

View File

@ -225,7 +225,7 @@ public abstract class RequestMappingInfoHandlerMapping extends AbstractHandlerMe
/** /**
* Whether there is any partial matches. * Whether there are any partial matches.
*/ */
public boolean isEmpty() { public boolean isEmpty() {
return this.partialMatches.isEmpty(); return this.partialMatches.isEmpty();

View File

@ -297,10 +297,10 @@ public class RedirectView extends AbstractUrlBasedView {
/** /**
* Whether the given targetUrl has a host that is a "foreign" system in which * 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. * 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. * property is configured and the target URL has a host that does not match.
* @param targetUrl the target redirect URL * @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 * the URL does not have a host or the "host" property is not configured
*/ */
protected boolean isRemoteHost(String targetUrl) { protected boolean isRemoteHost(String targetUrl) {