mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-09 11:34:55 +00:00
Remove obsolete comment
This commit is contained in:
parent
7cb81aa26f
commit
dec5675c22
@ -156,14 +156,14 @@ private static Throwable getCauseUsingMethodName(final Throwable throwable, fina
|
||||
Method method = null;
|
||||
try {
|
||||
method = throwable.getClass().getMethod(methodName);
|
||||
} catch (final NoSuchMethodException | SecurityException ignored) { // NOPMD
|
||||
} catch (final NoSuchMethodException | SecurityException ignored) {
|
||||
// exception ignored
|
||||
}
|
||||
|
||||
if (method != null && Throwable.class.isAssignableFrom(method.getReturnType())) {
|
||||
try {
|
||||
return (Throwable) method.invoke(throwable);
|
||||
} catch (final IllegalAccessException | IllegalArgumentException | InvocationTargetException ignored) { // NOPMD
|
||||
} catch (final IllegalAccessException | IllegalArgumentException | InvocationTargetException ignored) {
|
||||
// exception ignored
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user