Skip to content

Commit 6ddfa83

Browse files
committed
Reduce vertical whitespace
1 parent ef2bde1 commit 6ddfa83

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/main/java/org/apache/commons/lang3/concurrent/ConcurrentUtils.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,10 @@ public static ConcurrentException extractCause(final ExecutionException ex) {
223223
* @param ex the exception to be processed
224224
* @return a {@link ConcurrentRuntimeException} with the checked cause
225225
*/
226-
public static ConcurrentRuntimeException extractCauseUnchecked(
227-
final ExecutionException ex) {
226+
public static ConcurrentRuntimeException extractCauseUnchecked(final ExecutionException ex) {
228227
if (ex == null || ex.getCause() == null) {
229228
return null;
230229
}
231-
232230
ExceptionUtils.throwUnchecked(ex.getCause());
233231
return new ConcurrentRuntimeException(ex.getMessage(), ex.getCause());
234232
}
@@ -246,10 +244,8 @@ public static ConcurrentRuntimeException extractCauseUnchecked(
246244
* @throws ConcurrentException if the cause of the {@code
247245
* ExecutionException} is a checked exception
248246
*/
249-
public static void handleCause(final ExecutionException ex)
250-
throws ConcurrentException {
247+
public static void handleCause(final ExecutionException ex) throws ConcurrentException {
251248
final ConcurrentException cause = extractCause(ex);
252-
253249
if (cause != null) {
254250
throw cause;
255251
}
@@ -270,7 +266,6 @@ public static void handleCause(final ExecutionException ex)
270266
*/
271267
public static void handleCauseUnchecked(final ExecutionException ex) {
272268
final ConcurrentRuntimeException cause = extractCauseUnchecked(ex);
273-
274269
if (cause != null) {
275270
throw cause;
276271
}
@@ -351,7 +346,6 @@ public static <K, V> V putIfAbsent(final ConcurrentMap<K, V> map, final K key, f
351346
if (map == null) {
352347
return null;
353348
}
354-
355349
final V result = map.putIfAbsent(key, value);
356350
return result != null ? result : value;
357351
}

0 commit comments

Comments
 (0)