diff --git a/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/support/ServiceUnavailableException.java b/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/support/ServiceUnavailableException.java index faca510a..c4651c14 100644 --- a/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/support/ServiceUnavailableException.java +++ b/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/support/ServiceUnavailableException.java @@ -20,7 +20,8 @@ import org.springframework.web.bind.annotation.ResponseStatus; import static org.springframework.http.HttpStatus.SERVICE_UNAVAILABLE; -@ResponseStatus(value = SERVICE_UNAVAILABLE, reason = "Upstream service is temporarily unavailable") +@ResponseStatus(value = SERVICE_UNAVAILABLE, + reason = "Upstream service is temporarily unavailable") public class ServiceUnavailableException extends Exception { public ServiceUnavailableException() { @@ -32,7 +33,7 @@ public class ServiceUnavailableException extends Exception { /** * Disables fillInStackTrace for performance reasons. - * @return + * @return this */ @Override public synchronized Throwable fillInStackTrace() { diff --git a/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/support/TimeoutException.java b/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/support/TimeoutException.java index 2b996eda..1e77bfb0 100644 --- a/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/support/TimeoutException.java +++ b/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/support/TimeoutException.java @@ -33,7 +33,7 @@ public class TimeoutException extends Exception { /** * Disables fillInStackTrace for performance reasons. - * @return + * @return this */ @Override public synchronized Throwable fillInStackTrace() {