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
commit 6ddfa8368f822c95c8af3479180290d521827526 Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Sat Jun 14 14:12:42 2025 -0400 Reduce vertical whitespace --- .../org/apache/commons/lang3/concurrent/ConcurrentUtils.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/concurrent/ConcurrentUtils.java b/src/main/java/org/apache/commons/lang3/concurrent/ConcurrentUtils.java index 439a7af46..1586cf6d4 100644 --- a/src/main/java/org/apache/commons/lang3/concurrent/ConcurrentUtils.java +++ b/src/main/java/org/apache/commons/lang3/concurrent/ConcurrentUtils.java @@ -223,12 +223,10 @@ public static ConcurrentException extractCause(final ExecutionException ex) { * @param ex the exception to be processed * @return a {@link ConcurrentRuntimeException} with the checked cause */ - public static ConcurrentRuntimeException extractCauseUnchecked( - final ExecutionException ex) { + public static ConcurrentRuntimeException extractCauseUnchecked(final ExecutionException ex) { if (ex == null || ex.getCause() == null) { return null; } - ExceptionUtils.throwUnchecked(ex.getCause()); return new ConcurrentRuntimeException(ex.getMessage(), ex.getCause()); } @@ -246,10 +244,8 @@ public static ConcurrentRuntimeException extractCauseUnchecked( * @throws ConcurrentException if the cause of the {@code * ExecutionException} is a checked exception */ - public static void handleCause(final ExecutionException ex) - throws ConcurrentException { + public static void handleCause(final ExecutionException ex) throws ConcurrentException { final ConcurrentException cause = extractCause(ex); - if (cause != null) { throw cause; } @@ -270,7 +266,6 @@ public static void handleCause(final ExecutionException ex) */ public static void handleCauseUnchecked(final ExecutionException ex) { final ConcurrentRuntimeException cause = extractCauseUnchecked(ex); - if (cause != null) { throw cause; } @@ -351,7 +346,6 @@ public static <K, V> V putIfAbsent(final ConcurrentMap<K, V> map, final K key, f if (map == null) { return null; } - final V result = map.putIfAbsent(key, value); return result != null ? result : value; }