@@ -55,6 +55,7 @@ public abstract class ReflectionUtils {
55
55
56
56
private static final Field [] NO_FIELDS = {};
57
57
58
+
58
59
/**
59
60
* Cache for {@link Class#getDeclaredMethods()} plus equivalent default methods
60
61
* from Java 8 based interfaces, allowing for fast iteration.
@@ -114,7 +115,7 @@ public static Field findField(Class<?> clazz, String name, Class<?> type) {
114
115
* <p>Thrown exceptions are handled via a call to {@link #handleReflectionException(Exception)}.
115
116
* @param field the field to set
116
117
* @param target the target object on which to set the field
117
- * @param value the value to set; may be {@code null}
118
+ * @param value the value to set ( may be {@code null})
118
119
*/
119
120
public static void setField (Field field , Object target , Object value ) {
120
121
try {
@@ -296,12 +297,11 @@ public static void handleInvocationTargetException(InvocationTargetException ex)
296
297
297
298
/**
298
299
* Rethrow the given {@link Throwable exception}, which is presumably the
299
- * <em>target exception</em> of an {@link InvocationTargetException}. Should
300
- * only be called if no checked exception is expected to be thrown by the
301
- * target method.
300
+ * <em>target exception</em> of an {@link InvocationTargetException}.
301
+ * Should only be called if no checked exception is expected to be thrown
302
+ * by the target method.
302
303
* <p>Rethrows the underlying exception cast to an {@link RuntimeException} or
303
- * {@link Error} if appropriate; otherwise, throws an
304
- * {@link IllegalStateException}.
304
+ * {@link Error} if appropriate; otherwise, throws an {@link IllegalStateException}.
305
305
* @param ex the exception to rethrow
306
306
* @throws RuntimeException the rethrown exception
307
307
*/
@@ -317,12 +317,11 @@ public static void rethrowRuntimeException(Throwable ex) {
317
317
318
318
/**
319
319
* Rethrow the given {@link Throwable exception}, which is presumably the
320
- * <em>target exception</em> of an {@link InvocationTargetException}. Should
321
- * only be called if no checked exception is expected to be thrown by the
322
- * target method.
320
+ * <em>target exception</em> of an {@link InvocationTargetException}.
321
+ * Should only be called if no checked exception is expected to be thrown
322
+ * by the target method.
323
323
* <p>Rethrows the underlying exception cast to an {@link Exception} or
324
- * {@link Error} if appropriate; otherwise, throws an
325
- * {@link IllegalStateException}.
324
+ * {@link Error} if appropriate; otherwise, throws an {@link IllegalStateException}.
326
325
* @param ex the exception to rethrow
327
326
* @throws Exception the rethrown exception (in case of a checked exception)
328
327
*/
@@ -338,8 +337,8 @@ public static void rethrowException(Throwable ex) throws Exception {
338
337
339
338
/**
340
339
* Determine whether the given method explicitly declares the given
341
- * exception or one of its superclasses, which means that an exception of
342
- * that type can be propagated as-is within a reflective invocation.
340
+ * exception or one of its superclasses, which means that an exception
341
+ * of that type can be propagated as-is within a reflective invocation.
343
342
* @param method the declaring method
344
343
* @param exceptionType the exception to throw
345
344
* @return {@code true} if the exception can be thrown as-is;
0 commit comments