[LANG-1726] Undeprecate ExceptionUtils.rethrow(Throwable)

This commit is contained in:
Gary Gregory 2024-01-04 15:20:30 -05:00
parent 9ad6d947e9
commit adc70c15ce
2 changed files with 1 additions and 2 deletions

View File

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

View File

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