You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2017/10/23 18:06:35 UTC

[lang] [LANG-1361] ExceptionUtils.getThrowableList() is using deprecated ExceptionUtils.getCause()

Repository: commons-lang
Updated Branches:
  refs/heads/master 96a1a31d7 -> 7aad59482


[LANG-1361] ExceptionUtils.getThrowableList() is using deprecated
ExceptionUtils.getCause()

Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/7aad5948
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/7aad5948
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/7aad5948

Branch: refs/heads/master
Commit: 7aad59482002d0b4bc3546259d33eab20ce76b9e
Parents: 96a1a31
Author: Gary Gregory <gg...@apache.org>
Authored: Mon Oct 23 12:06:32 2017 -0600
Committer: Gary Gregory <gg...@apache.org>
Committed: Mon Oct 23 12:06:32 2017 -0600

----------------------------------------------------------------------
 src/changes/changes.xml                                            | 1 +
 .../java/org/apache/commons/lang3/exception/ExceptionUtils.java    | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/7aad5948/src/changes/changes.xml
----------------------------------------------------------------------
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 66dd510..bea599d 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -54,6 +54,7 @@ The <action> type attribute can be add,update,fix,remove.
     <action issue="LANG-1349" type="fix" dev="pschumacher" due-to="Naman Nigam">EqualsBuilder#isRegistered: swappedPair construction bug</action>
     <action issue="LANG-1357" type="fix" dev="ggregory" due-to="BruceKuiLiu">org.apache.commons.lang3.time.FastDateParser should use toUpperCase(Locale)</action>
     <action issue="LANG-1360" type="add" dev="ggregory" due-to="Gary Gregory">Add methods to ObjectUtils to get various forms of class names in a null-safe manner</action>
+    <action issue="LANG-1361" type="update" dev="ggregory" due-to="Ana">ExceptionUtils.getThrowableList() is using deprecated ExceptionUtils.getCause()</action>
   </release>
 
   <release version="3.6" date="2017-06-08" description="New features and bug fixes. Requires Java 7.">

http://git-wip-us.apache.org/repos/asf/commons-lang/blob/7aad5948/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java b/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java
index f1a7f87..5da1a83 100644
--- a/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java
+++ b/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java
@@ -280,7 +280,7 @@ public class ExceptionUtils {
         final List<Throwable> list = new ArrayList<>();
         while (throwable != null && !list.contains(throwable)) {
             list.add(throwable);
-            throwable = ExceptionUtils.getCause(throwable);
+            throwable = throwable.getCause();
         }
         return list;
     }