Skip to content

Commit 6ae79c6

Browse files
committed
Format method
1 parent d53e9c5 commit 6ae79c6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,7 @@ public T borrowObject(final Duration maxWaitDuration) throws Exception {
326326
}
327327
p = null;
328328
if (create) {
329-
final NoSuchElementException nsee = new NoSuchElementException(
330-
appendStats("Unable to activate object"));
329+
final NoSuchElementException nsee = new NoSuchElementException(appendStats("Unable to activate object"));
331330
nsee.initCause(e);
332331
throw nsee;
333332
}
@@ -350,8 +349,7 @@ public T borrowObject(final Duration maxWaitDuration) throws Exception {
350349
}
351350
p = null;
352351
if (create) {
353-
final NoSuchElementException nsee = new NoSuchElementException(
354-
appendStats("Unable to validate object"));
352+
final NoSuchElementException nsee = new NoSuchElementException(appendStats("Unable to validate object"));
355353
nsee.initCause(validationThrowable);
356354
throw nsee;
357355
}

0 commit comments

Comments
 (0)