diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClient.java b/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClient.java index e7589c41fa..f5c58d3038 100644 --- a/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClient.java +++ b/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2020 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -68,7 +68,7 @@ class DefaultWebClient implements WebClient { private static final String URI_TEMPLATE_ATTRIBUTE = WebClient.class.getName() + ".uriTemplate"; private static final Mono NO_HTTP_CLIENT_RESPONSE_ERROR = Mono.error( - new IllegalStateException("The underlying HTTP client completed without emitting a response.")); + () -> new IllegalStateException("The underlying HTTP client completed without emitting a response.")); private final ExchangeFunction exchangeFunction; diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/ExchangeFilterFunctions.java b/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/ExchangeFilterFunctions.java index 7f55ab0a85..98cf2eb188 100644 --- a/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/ExchangeFilterFunctions.java +++ b/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/ExchangeFilterFunctions.java @@ -68,7 +68,7 @@ public abstract class ExchangeFilterFunctions { * Return a filter that generates an error signal when the given * {@link HttpStatusCode} predicate matches. * @param statusPredicate the predicate to check the HTTP status with - * @param exceptionFunction the function that to create the exception + * @param exceptionFunction the function to create the exception * @return the filter to generate an error signal */ public static ExchangeFilterFunction statusError(Predicate statusPredicate,