Removing now unnecessary static initializer block. LANG-491
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895128 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e6e7f16e57
commit
e87ee0a705
|
@ -77,30 +77,6 @@ public class ExceptionUtils {
|
|||
"getThrowable",
|
||||
};
|
||||
|
||||
/**
|
||||
* <p>The Method object for Java 1.4 getCause.</p>
|
||||
*/
|
||||
private static final Method THROWABLE_CAUSE_METHOD;
|
||||
/**
|
||||
* <p>The Method object for Java 1.4 initCause.</p>
|
||||
*/
|
||||
private static final Method THROWABLE_INITCAUSE_METHOD;
|
||||
static {
|
||||
Method causeMethod;
|
||||
try {
|
||||
causeMethod = Throwable.class.getMethod("getCause", (Class[]) null);
|
||||
} catch (Exception e) {
|
||||
causeMethod = null;
|
||||
}
|
||||
THROWABLE_CAUSE_METHOD = causeMethod;
|
||||
try {
|
||||
causeMethod = Throwable.class.getMethod("initCause", new Class[]{Throwable.class});
|
||||
} catch (Exception e) {
|
||||
causeMethod = null;
|
||||
}
|
||||
THROWABLE_INITCAUSE_METHOD = causeMethod;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Public constructor allows an instance of <code>ExceptionUtils</code> to be created, although that is not
|
||||
|
|
Loading…
Reference in New Issue