From 4d9d814b4ff97901f04839db814fc0724651aacc Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Mon, 23 Mar 2020 17:56:28 +0100 Subject: [PATCH] Mark MediaTypeNotSupportedStatusException as deprecated Closes gh-24743 --- .../web/server/MediaTypeNotSupportedStatusException.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spring-web/src/main/java/org/springframework/web/server/MediaTypeNotSupportedStatusException.java b/spring-web/src/main/java/org/springframework/web/server/MediaTypeNotSupportedStatusException.java index a7cee143f5a..690e7a136b0 100644 --- a/spring-web/src/main/java/org/springframework/web/server/MediaTypeNotSupportedStatusException.java +++ b/spring-web/src/main/java/org/springframework/web/server/MediaTypeNotSupportedStatusException.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * Copyright 2002-2020 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. @@ -27,7 +27,10 @@ import org.springframework.http.MediaType; * * @author Rossen Stoyanchev * @since 5.0 + * @deprecated in favor of {@link UnsupportedMediaTypeStatusException}, + * with this class never thrown by Spring code and to be removed in 5.3 */ +@Deprecated @SuppressWarnings("serial") public class MediaTypeNotSupportedStatusException extends ResponseStatusException {