File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
spring-web/src/main/java/org/springframework/web/method/annotation Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2121import java .util .Arrays ;
2222import java .util .Comparator ;
2323import java .util .HashMap ;
24- import java .util .HashSet ;
24+ import java .util .LinkedHashSet ;
2525import java .util .List ;
2626import java .util .Map ;
2727import java .util .Set ;
@@ -121,7 +121,7 @@ private ExceptionHandlerMappingInfo detectExceptionMappings(Method method) {
121121 if (exceptions .isEmpty ()) {
122122 throw new IllegalStateException ("No exception types mapped to " + method );
123123 }
124- Set <MediaType > mediaTypes = new HashSet <>();
124+ Set <MediaType > mediaTypes = new LinkedHashSet <>();
125125 for (String mediaType : exceptionHandler .produces ()) {
126126 try {
127127 mediaTypes .add (MediaType .parseMediaType (mediaType ));
You can’t perform that action at this time.
0 commit comments