@@ -66,9 +66,9 @@ protected AbstractExceptionHandlerMethodResolver(Map<Class<? extends Throwable>,
66
66
}
67
67
68
68
/**
69
- * Extract the exceptions this method handles.This implementation looks for
69
+ * Extract the exceptions this method handles. This implementation looks for
70
70
* 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.
72
72
*/
73
73
@ SuppressWarnings ("unchecked" )
74
74
protected static List <Class <? extends Throwable >> getExceptionsFromMethodSignature (Method method ) {
@@ -94,7 +94,7 @@ public boolean hasExceptionMappings() {
94
94
95
95
/**
96
96
* 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.
98
98
* @param exception the exception
99
99
* @return a Method to handle the exception, or {@code null} if none found
100
100
*/
@@ -113,6 +113,7 @@ public Method resolveMethod(Throwable exception) {
113
113
/**
114
114
* Find a {@link Method} to handle the given exception type. This can be
115
115
* 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.
116
117
* @param exceptionType the exception type
117
118
* @return a Method to handle the exception, or {@code null} if none found
118
119
* @since 4.3.1
@@ -128,7 +129,8 @@ public Method resolveMethodByExceptionType(Class<? extends Throwable> exceptionT
128
129
}
129
130
130
131
/**
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.
132
134
*/
133
135
@ Nullable
134
136
private Method getMappedMethod (Class <? extends Throwable > exceptionType ) {
@@ -150,8 +152,9 @@ private Method getMappedMethod(Class<? extends Throwable> exceptionType) {
150
152
}
151
153
152
154
/**
153
- * For the NO_MATCHING_EXCEPTION_HANDLER_METHOD constant.
155
+ * For the {@link # NO_MATCHING_EXCEPTION_HANDLER_METHOD} constant.
154
156
*/
157
+ @ SuppressWarnings ("unused" )
155
158
private void noMatchingExceptionHandler () {
156
159
}
157
160
0 commit comments