From 15bdee445697dab8f7f5d8a0b055b1ff7385ad57 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Sun, 19 Feb 2023 18:54:56 +0000 Subject: build issue git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907761 13f79535-47bb-0310-9956-ffa450edef68 --- poi/src/main/java/org/apache/poi/util/ExceptionUtil.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/poi/src/main/java/org/apache/poi/util/ExceptionUtil.java b/poi/src/main/java/org/apache/poi/util/ExceptionUtil.java index 01ec1aced2..db44ce9587 100644 --- a/poi/src/main/java/org/apache/poi/util/ExceptionUtil.java +++ b/poi/src/main/java/org/apache/poi/util/ExceptionUtil.java @@ -43,10 +43,12 @@ public class ExceptionUtil { /** * Designed to be used in conjunction with {@link #isFatal(Throwable)}. * This method should be used with care. + *

+ * The input throwable is thrown if it is an Error or RuntimeException. + * Otherwise, the method wraps the throwable in a RuntimeException and rethrows that. + *

* * @param throwable to check - * @throws Throwable the input throwable if it is an Error or RuntimeException. - * Otherwise wraps the throwable in a RuntimeException. */ public static void rethrow(Throwable throwable) { if (throwable instanceof Error) { -- cgit v1.2.3