diff --git a/spring-cloud-gateway-server-mvc/src/main/java/org/springframework/cloud/gateway/server/mvc/filter/RetryFilterFunctions.java b/spring-cloud-gateway-server-mvc/src/main/java/org/springframework/cloud/gateway/server/mvc/filter/RetryFilterFunctions.java index 59ea239c3..764bc664b 100644 --- a/spring-cloud-gateway-server-mvc/src/main/java/org/springframework/cloud/gateway/server/mvc/filter/RetryFilterFunctions.java +++ b/spring-cloud-gateway-server-mvc/src/main/java/org/springframework/cloud/gateway/server/mvc/filter/RetryFilterFunctions.java @@ -70,8 +70,7 @@ public abstract class RetryFilterFunctions { } private static boolean isRetryableStatusCode(HttpStatusCode httpStatus, RetryConfig config) { - return config.getSeries().stream() - .anyMatch(series -> HttpStatus.Series.resolve(httpStatus.value()) == series); + return config.getSeries().stream().anyMatch(series -> HttpStatus.Series.resolve(httpStatus.value()) == series); } public static class HttpStatusRetryPolicy extends NeverRetryPolicy { diff --git a/spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/filter/factory/RequestSizeGatewayFilterFactory.java b/spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/filter/factory/RequestSizeGatewayFilterFactory.java index fa7a35a92..d389ae74e 100644 --- a/spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/filter/factory/RequestSizeGatewayFilterFactory.java +++ b/spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/filter/factory/RequestSizeGatewayFilterFactory.java @@ -30,9 +30,9 @@ import org.springframework.web.server.ServerWebExchange; import static org.springframework.cloud.gateway.support.GatewayToStringStyler.filterToStringCreator; /** - * This filter blocks the request if the size in Content-Length header value is more than the permissible size. - * Has no effect if Content-Length header is missing. - * The default request size is 5 MB. + * This filter blocks the request if the size in Content-Length header value is more than + * the permissible size. Has no effect if Content-Length header is missing. The default + * request size is 5 MB. * * @author Arpan */ diff --git a/spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/route/builder/GatewayFilterSpec.java b/spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/route/builder/GatewayFilterSpec.java index aa209c486..5b0b6aeab 100644 --- a/spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/route/builder/GatewayFilterSpec.java +++ b/spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/route/builder/GatewayFilterSpec.java @@ -817,7 +817,8 @@ public class GatewayFilterSpec extends UriSpec { } /** - * A filter that sets the maximum permissible size of a Content-Length header value in the Request. + * A filter that sets the maximum permissible size of a Content-Length header value in + * the Request. * @param size the maximum size of a request * @return a {@link GatewayFilterSpec} that can be used to apply additional filters */ @@ -826,7 +827,8 @@ public class GatewayFilterSpec extends UriSpec { } /** - * A filter that sets the maximum permissible size of a Content-Length header value in the Request. + * A filter that sets the maximum permissible size of a Content-Length header value in + * the Request. * @param size the maximum size of a request * @return a {@link GatewayFilterSpec} that can be used to apply additional filters */