Author: bayard
Date: Sat Jan  2 05:47:45 2010
New Revision: 895128

URL: http://svn.apache.org/viewvc?rev=895128&view=rev
Log:
Removing now unnecessary static initializer block. LANG-491

Modified:
    
commons/proper/lang/trunk/src/java/org/apache/commons/lang3/exception/ExceptionUtils.java

Modified: 
commons/proper/lang/trunk/src/java/org/apache/commons/lang3/exception/ExceptionUtils.java
URL: 
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang3/exception/ExceptionUtils.java?rev=895128&r1=895127&r2=895128&view=diff
==============================================================================
--- 
commons/proper/lang/trunk/src/java/org/apache/commons/lang3/exception/ExceptionUtils.java
 (original)
+++ 
commons/proper/lang/trunk/src/java/org/apache/commons/lang3/exception/ExceptionUtils.java
 Sat Jan  2 05:47:45 2010
@@ -78,30 +78,6 @@
     };
 
     /**
-     * <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
      * normally necessary.


Reply via email to