From de417beff71f42bc5f2b8386649a1f535cf7cb6c Mon Sep 17 00:00:00 2001 From: froggy0m0 <79225728+froggy0m0@users.noreply.github.com> Date: Fri, 6 Mar 2026 19:57:14 +0900 Subject: [PATCH] Fix typo in ExceptionMapingComparator name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes gh-36422 Signed-off-by: 신성현 --- .../method/annotation/ExceptionHandlerMethodResolver.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }