Remove unused import, private methods, and private fields

This commit is contained in:
Guido Lena Cota
2018-10-15 23:10:20 +02:00
parent cdef68af31
commit eb13e0d683
4 changed files with 0 additions and 10 deletions

View File

@@ -18,7 +18,6 @@
package org.springframework.cloud.gateway.handler.predicate;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.function.Predicate;

View File

@@ -556,7 +556,4 @@ public class GatewayFilterSpec extends UriSpec {
}));
}
private String routeId() {
return routeBuilder.getId();
}
}

View File

@@ -17,18 +17,15 @@
package org.springframework.cloud.gateway.support;
import java.util.EnumSet;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import org.springframework.web.reactive.function.server.HandlerStrategies;
import org.springframework.web.reactive.result.view.ViewResolver;
import reactor.core.publisher.Mono;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseCookie;
import org.springframework.http.codec.HttpMessageWriter;
@@ -43,8 +40,6 @@ import org.springframework.web.server.ServerWebExchange;
public class DefaultServerResponse<T> implements ServerResponse {
private static final Set<HttpMethod> SAFE_METHODS = EnumSet.of(HttpMethod.GET, HttpMethod.HEAD);
private final ServerWebExchange exchange;
private final BodyInserter<T, ? super ServerHttpResponse> inserter;

View File

@@ -25,7 +25,6 @@ import org.springframework.expression.spel.standard.SpelExpressionParser;
import org.springframework.expression.spel.support.StandardEvaluationContext;
import org.springframework.util.Assert;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;