You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ba...@apache.org on 2010/01/02 07:13:25 UTC
svn commit: r895132 -
/commons/proper/lang/trunk/src/java/org/apache/commons/lang3/exception/ExceptionUtils.java
Author: bayard
Date: Sat Jan 2 06:13:25 2010
New Revision: 895132
URL: http://svn.apache.org/viewvc?rev=895132&view=rev
Log:
Added deprecation for 4.0 notices. 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=895132&r1=895131&r2=895132&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 06:13:25 2010
@@ -57,6 +57,7 @@
/**
* <p>The names of methods commonly used to access a wrapped exception.</p>
*/
+ // TODO: Remove in Lang 4.0
private static final String[] CAUSE_METHOD_NAMES = {
"getCause",
"getNextException",
@@ -90,7 +91,9 @@
*
* @return cloned array of the default method names
* @since 3.0
+ * @deprecated This feature will be removed in Lang 4.0
*/
+ @Deprecated
public static String[] getDefaultCauseMethodNames() {
return ArrayUtils.clone(CAUSE_METHOD_NAMES);
}
@@ -125,7 +128,9 @@
* @return the cause of the <code>Throwable</code>,
* <code>null</code> if none found or null throwable input
* @since 1.0
+ * @deprecated This feature will be removed in Lang 4.0
*/
+ @Deprecated
public static Throwable getCause(Throwable throwable) {
return getCause(throwable, CAUSE_METHOD_NAMES);
}
@@ -147,7 +152,9 @@
* @return the cause of the <code>Throwable</code>,
* <code>null</code> if none found or null throwable input
* @since 1.0
+ * @deprecated This feature will be removed in Lang 4.0
*/
+ @Deprecated
public static Throwable getCause(Throwable throwable, String[] methodNames) {
if (throwable == null) {
return null;
@@ -199,6 +206,7 @@
* @param methodName the name of the method to find and invoke
* @return the wrapped exception, or <code>null</code> if not found
*/
+ // TODO: Remove in Lang 4.0
private static Throwable getCauseUsingMethodName(Throwable throwable, String methodName) {
Method method = null;
try {