Polish: remove unused private fields, remove empty operator

This commit is contained in:
igor-suhorukov
2018-02-14 00:03:54 +03:00
committed by Juergen Hoeller
parent 1908080d5c
commit 45e520ed86
8 changed files with 5 additions and 32 deletions

View File

@@ -194,8 +194,6 @@ class DefaultPathContainer implements PathContainer {
private final String value;
private final char[] valueAsChars;
private final String valueToMatch;
private final char[] valueToMatchAsChars;
@@ -206,7 +204,6 @@ class DefaultPathContainer implements PathContainer {
DefaultPathSegment(String value, String valueToMatch, MultiValueMap<String, String> params) {
Assert.isTrue(!value.contains("/"), () -> "Invalid path segment value: " + value);
this.value = value;
this.valueAsChars = value.toCharArray();
this.valueToMatch = valueToMatch;
this.valueToMatchAsChars = valueToMatch.toCharArray();
this.parameters = CollectionUtils.unmodifiableMultiValueMap(params);

View File

@@ -254,7 +254,7 @@ public class ServletHttpHandlerAdapter implements Servlet {
public void onComplete(AsyncEvent event) {
// no-op
}
};
}
private class HandlerResultSubscriber implements Subscriber<Void> {

View File

@@ -40,7 +40,7 @@ import org.springframework.util.ObjectUtils;
*/
public class DefaultUriBuilderFactory implements UriBuilderFactory {
public enum EncodingMode {URI_COMPONENT, VALUES_ONLY, NONE };
public enum EncodingMode {URI_COMPONENT, VALUES_ONLY, NONE }
private final UriComponentsBuilder baseUri;