diff --git a/spring-web/src/main/java/org/springframework/web/method/annotation/ExceptionHandlerMethodResolver.java b/spring-web/src/main/java/org/springframework/web/method/annotation/ExceptionHandlerMethodResolver.java index 16bddbb58ee..3eacf8bdf73 100644 --- a/spring-web/src/main/java/org/springframework/web/method/annotation/ExceptionHandlerMethodResolver.java +++ b/spring-web/src/main/java/org/springframework/web/method/annotation/ExceptionHandlerMethodResolver.java @@ -236,7 +236,7 @@ public class ExceptionHandlerMethodResolver { } if (!matches.isEmpty()) { if (matches.size() > 1) { - matches.sort(new ExceptionMapingComparator(exceptionType, mediaType)); + matches.sort(new ExceptionMappingComparator(exceptionType, mediaType)); } return Objects.requireNonNull(this.mappedMethods.get(matches.get(0))); } @@ -263,13 +263,13 @@ public class ExceptionHandlerMethodResolver { } } - private static class ExceptionMapingComparator implements Comparator { + private static class ExceptionMappingComparator implements Comparator { private final ExceptionDepthComparator exceptionDepthComparator; private final MediaType mediaType; - public ExceptionMapingComparator(Class exceptionType, MediaType mediaType) { + public ExceptionMappingComparator(Class exceptionType, MediaType mediaType) { this.exceptionDepthComparator = new ExceptionDepthComparator(exceptionType); this.mediaType = mediaType; }