mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-09 11:34:55 +00:00
Simplify
This commit is contained in:
parent
b01d56ddea
commit
8d6e743748
@ -238,9 +238,8 @@ public static Throwable getRootCause(final Throwable throwable) {
|
||||
* @since 2.2
|
||||
*/
|
||||
public static String getRootCauseMessage(final Throwable throwable) {
|
||||
Throwable root = getRootCause(throwable);
|
||||
root = root == null ? throwable : root;
|
||||
return getMessage(root);
|
||||
final Throwable root = getRootCause(throwable);
|
||||
return getMessage(root == null ? throwable : root);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user