Polish
This commit is contained in:
@@ -51,7 +51,7 @@ public enum StaticResourceLocation {
|
||||
*/
|
||||
FAVICON("/**/favicon.ico");
|
||||
|
||||
private String[] patterns;
|
||||
private final String[] patterns;
|
||||
|
||||
StaticResourceLocation(String... patterns) {
|
||||
this.patterns = patterns;
|
||||
|
||||
@@ -33,7 +33,7 @@ public final class PathRequest {
|
||||
|
||||
/**
|
||||
* Returns a {@link StaticResourceRequest} that can be used to create a matcher for
|
||||
* {@link StaticResourceLocation Locations}.
|
||||
* {@link StaticResourceLocation locations}.
|
||||
* @return a {@link StaticResourceRequest}
|
||||
*/
|
||||
public static StaticResourceRequest toStaticResources() {
|
||||
|
||||
@@ -90,7 +90,7 @@ public final class StaticResourceRequest {
|
||||
|
||||
/**
|
||||
* The server web exchange matcher used to match against resource
|
||||
* {@link StaticResourceLocation Locations}.
|
||||
* {@link StaticResourceLocation locations}.
|
||||
*/
|
||||
public static final class StaticResourceServerWebExchange
|
||||
implements ServerWebExchangeMatcher {
|
||||
|
||||
@@ -38,7 +38,7 @@ public final class PathRequest {
|
||||
|
||||
/**
|
||||
* Returns a {@link StaticResourceRequest} that can be used to create a matcher for
|
||||
* {@link StaticResourceLocation Locations}.
|
||||
* {@link StaticResourceLocation locations}.
|
||||
* @return a {@link StaticResourceRequest}
|
||||
*/
|
||||
public static StaticResourceRequest toStaticResources() {
|
||||
|
||||
@@ -90,12 +90,10 @@ public class StaticResourceRequestTests {
|
||||
this.resourceRequest.atCommonLocations().excluding(null);
|
||||
}
|
||||
|
||||
private StaticResourceRequestTests.RequestMatcherAssert assertMatcher(
|
||||
ServerWebExchangeMatcher matcher) {
|
||||
private RequestMatcherAssert assertMatcher(ServerWebExchangeMatcher matcher) {
|
||||
StaticWebApplicationContext context = new StaticWebApplicationContext();
|
||||
context.registerBean(ServerProperties.class);
|
||||
return assertThat(
|
||||
new StaticResourceRequestTests.RequestMatcherAssert(context, matcher));
|
||||
return assertThat(new RequestMatcherAssert(context, matcher));
|
||||
}
|
||||
|
||||
private static class RequestMatcherAssert implements AssertDelegateTarget {
|
||||
|
||||
Reference in New Issue
Block a user