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:
Henri Yandell 2010-01-02 05:47:45 +00:00
parent e6e7f16e57
commit e87ee0a705
1 changed files with 0 additions and 24 deletions

View File

@ -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