Skip to content

Commit 7ebd850

Browse files
committed
Mark MediaTypeNotSupportedStatusException as deprecated
Closes gh-24743
1 parent fd1ca46 commit 7ebd850

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spring-web/src/main/java/org/springframework/web/server/MediaTypeNotSupportedStatusException.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2016 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -27,7 +27,10 @@
2727
*
2828
* @author Rossen Stoyanchev
2929
* @since 5.0
30+
* @deprecated in favor of {@link UnsupportedMediaTypeStatusException},
31+
* with this class never thrown by Spring code and to be removed in 5.3
3032
*/
33+
@Deprecated
3134
@SuppressWarnings("serial")
3235
public class MediaTypeNotSupportedStatusException extends ResponseStatusException {
3336

0 commit comments

Comments
 (0)