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 07dd0ca54 Javadoc 07dd0ca54 is described below commit 07dd0ca548790ff1431b8a0d24718948fa2a1f50 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Tue Aug 13 14:01:38 2024 -0400 Javadoc Longer line --- .../java/org/apache/commons/lang3/function/Failable.java | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/function/Failable.java b/src/main/java/org/apache/commons/lang3/function/Failable.java index ebffe7266..b3edcd241 100644 --- a/src/main/java/org/apache/commons/lang3/function/Failable.java +++ b/src/main/java/org/apache/commons/lang3/function/Failable.java @@ -496,10 +496,10 @@ public class Failable { * If either the original action, or any of the resource action fails, then the <em>first</em> failure (AKA * {@link Throwable}) is rethrown. Example use: * - * <pre> + * <pre>{@code * final FileInputStream fis = new FileInputStream("my.file"); - * Functions.tryWithResources(useInputStream(fis), null, () -> fis.close()); - * </pre> + * Functions.tryWithResources(useInputStream(fis), null, () -> fis.close()); + * }</pre> * * @param action The action to execute. This object <em>will</em> always be invoked. * @param errorHandler An optional error handler, which will be invoked finally, if any error occurred. The error @@ -552,10 +552,10 @@ public class Failable { * If either the original action, or any of the resource action fails, then the <em>first</em> failure (AKA * {@link Throwable}) is rethrown. Example use: * - * <pre> + * <pre>{@code * final FileInputStream fis = new FileInputStream("my.file"); - * Functions.tryWithResources(useInputStream(fis), () -> fis.close()); - * </pre> + * Functions.tryWithResources(useInputStream(fis), () -> fis.close()); + * }</pre> * * @param action The action to execute. This object <em>will</em> always be invoked. * @param resources The resource actions to execute. <em>All</em> resource actions will be invoked, in the given @@ -563,8 +563,7 @@ public class Failable { * @see #tryWithResources(FailableRunnable, FailableConsumer, FailableRunnable...) */ @SafeVarargs - public static void tryWithResources(final FailableRunnable<? extends Throwable> action, - final FailableRunnable<? extends Throwable>... resources) { + public static void tryWithResources(final FailableRunnable<? extends Throwable> action, final FailableRunnable<? extends Throwable>... resources) { tryWithResources(action, null, resources); }