This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push:
new adc70c15c [LANG-1726] Undeprecate ExceptionUtils.rethrow(Throwable)
adc70c15c is described below
commit adc70c15ce3d19f4d9d6c60956038e2aa14a60bd
Author: Gary Gregory <[email protected]>
AuthorDate: Thu Jan 4 15:20:30 2024 -0500
[LANG-1726] Undeprecate ExceptionUtils.rethrow(Throwable)
---
src/changes/changes.xml | 1 +
src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java | 2 --
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 49724e0ad..64ca2afa0 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -62,6 +62,7 @@ The <action> type attribute can be add,update,fix,remove.
<action type="fix" dev="ggregory" due-to="Paranoïd
User">Minor grammar fixes #1143.</action>
<action issue="LANG-1713" type="fix" dev="ggregory" due-to="John Hendrikx,
Gary Gregory">ArrayUtils will return null when adding two null arrays, but
undocumented.</action>
<action type="fix" dev="ggregory" due-to="Gary
Gregory">Let parent POM figure out commons.spdx.version.</action>
+ <action issue="LANG-1726" type="fix" dev="ggregory" due-to="Václav
Haisman, Gary Gregory">Undeprecate ExceptionUtils.rethrow(Throwable).</action>
<!-- UPDATE -->
<action type="update" dev="sebb"
due-to="Dependabot">Bump commons-parent from 64 to 65.</action>
<!-- REMOVE -->
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 aeb62776e..1b251218a 100644
--- a/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java
+++ b/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java
@@ -870,9 +870,7 @@ public class ExceptionUtils {
* Java compiler requirement that all code paths return a value.
* @since 3.5
* @see #wrapAndThrow(Throwable)
- * @deprecated Use {@link #asRuntimeException(Throwable)}.
*/
- @Deprecated
public static <T> T rethrow(final Throwable throwable) {
// claim that the typeErasure invocation throws a RuntimeException
return ExceptionUtils.<T, RuntimeException>eraseType(throwable);