@@ -66,9 +66,9 @@ protected AbstractExceptionHandlerMethodResolver(Map<Class<? extends Throwable>,
6666 }
6767
6868 /**
69- * Extract the exceptions this method handles.This implementation looks for
69+ * Extract the exceptions this method handles. This implementation looks for
7070 * sub-classes of Throwable in the method signature.
71- * The method is static to ensure safe use from sub-class constructors.
71+ * <p> The method is static to ensure safe use from sub-class constructors.
7272 */
7373 @ SuppressWarnings ("unchecked" )
7474 protected static List <Class <? extends Throwable >> getExceptionsFromMethodSignature (Method method ) {
@@ -94,7 +94,7 @@ public boolean hasExceptionMappings() {
9494
9595 /**
9696 * Find a {@link Method} to handle the given exception.
97- * Use {@link ExceptionDepthComparator} if more than one match is found.
97+ * <p>Uses {@link ExceptionDepthComparator} if more than one match is found.
9898 * @param exception the exception
9999 * @return a Method to handle the exception, or {@code null} if none found
100100 */
@@ -113,6 +113,7 @@ public Method resolveMethod(Throwable exception) {
113113 /**
114114 * Find a {@link Method} to handle the given exception type. This can be
115115 * useful if an {@link Exception} instance is not available (e.g. for tools).
116+ * <p>Uses {@link ExceptionDepthComparator} if more than one match is found.
116117 * @param exceptionType the exception type
117118 * @return a Method to handle the exception, or {@code null} if none found
118119 * @since 4.3.1
@@ -128,7 +129,8 @@ public Method resolveMethodByExceptionType(Class<? extends Throwable> exceptionT
128129 }
129130
130131 /**
131- * Return the {@link Method} mapped to the given exception type, or {@code null} if none.
132+ * Return the {@link Method} mapped to the given exception type, or
133+ * {@link #NO_MATCHING_EXCEPTION_HANDLER_METHOD} if none.
132134 */
133135 @ Nullable
134136 private Method getMappedMethod (Class <? extends Throwable > exceptionType ) {
@@ -150,8 +152,9 @@ private Method getMappedMethod(Class<? extends Throwable> exceptionType) {
150152 }
151153
152154 /**
153- * For the NO_MATCHING_EXCEPTION_HANDLER_METHOD constant.
155+ * For the {@link # NO_MATCHING_EXCEPTION_HANDLER_METHOD} constant.
154156 */
157+ @ SuppressWarnings ("unused" )
155158 private void noMatchingExceptionHandler () {
156159 }
157160
0 commit comments