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-pool.git


The following commit(s) were added to refs/heads/master by this push:
     new 7815faee Format: "catch(" -> "catch ("
7815faee is described below

commit 7815faeed2fa318dffe78fd446c2066cd6b7ce80
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Tue Apr 18 10:57:03 2023 -0400

    Format: "catch(" -> "catch ("
---
 .../apache/commons/pool2/TestBaseObjectPool.java   | 10 ++++----
 .../apache/commons/pool2/TestKeyedObjectPool.java  | 28 +++++++++++-----------
 .../org/apache/commons/pool2/TestObjectPool.java   |  2 +-
 3 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/src/test/java/org/apache/commons/pool2/TestBaseObjectPool.java 
b/src/test/java/org/apache/commons/pool2/TestBaseObjectPool.java
index 99203ea9..28febb9b 100644
--- a/src/test/java/org/apache/commons/pool2/TestBaseObjectPool.java
+++ b/src/test/java/org/apache/commons/pool2/TestBaseObjectPool.java
@@ -95,7 +95,7 @@ public class TestBaseObjectPool extends TestObjectPool {
     public void testBaseAddObject() {
         try {
             pool = makeEmptyPool(3);
-        } catch(final UnsupportedOperationException e) {
+        } catch (final UnsupportedOperationException e) {
             return; // skip this test if unsupported
         }
         try {
@@ -111,7 +111,7 @@ public class TestBaseObjectPool extends TestObjectPool {
             pool.returnObject(obj);
             assertEquals(1, pool.getNumIdle());
             assertEquals(0, pool.getNumActive());
-        } catch(final UnsupportedOperationException e) {
+        } catch (final UnsupportedOperationException e) {
             return; // skip this test if one of those calls is unsupported
         } finally {
             pool.close();
@@ -122,7 +122,7 @@ public class TestBaseObjectPool extends TestObjectPool {
     public void testBaseBorrow() {
         try {
             pool = makeEmptyPool(3);
-        } catch(final UnsupportedOperationException e) {
+        } catch (final UnsupportedOperationException e) {
             return; // skip this test if unsupported
         }
         assertEquals(getNthObject(0), pool.borrowObject());
@@ -135,7 +135,7 @@ public class TestBaseObjectPool extends TestObjectPool {
     public void testBaseBorrowReturn() {
         try {
             pool = makeEmptyPool(3);
-        } catch(final UnsupportedOperationException e) {
+        } catch (final UnsupportedOperationException e) {
             return; // skip this test if unsupported
         }
         String obj0 = pool.borrowObject();
@@ -199,7 +199,7 @@ public class TestBaseObjectPool extends TestObjectPool {
     public void testBaseClosePool() {
         try {
             pool = makeEmptyPool(3);
-        } catch(final UnsupportedOperationException e) {
+        } catch (final UnsupportedOperationException e) {
             return; // skip this test if unsupported
         }
         final String obj = pool.borrowObject();
diff --git a/src/test/java/org/apache/commons/pool2/TestKeyedObjectPool.java 
b/src/test/java/org/apache/commons/pool2/TestKeyedObjectPool.java
index 03ad76d2..86c0fd79 100644
--- a/src/test/java/org/apache/commons/pool2/TestKeyedObjectPool.java
+++ b/src/test/java/org/apache/commons/pool2/TestKeyedObjectPool.java
@@ -243,7 +243,7 @@ public abstract class TestKeyedObjectPool {
     public void testBaseAddObject() {
         try {
             pool = makeEmptyPool(3);
-        } catch(final UnsupportedOperationException uoe) {
+        } catch (final UnsupportedOperationException uoe) {
             return; // skip this test if unsupported
         }
         final Object key = makeKey(0);
@@ -268,7 +268,7 @@ public abstract class TestKeyedObjectPool {
             assertEquals(0,pool.getNumActive());
             assertEquals(1,pool.getNumIdle(key));
             assertEquals(0,pool.getNumActive(key));
-        } catch(final UnsupportedOperationException e) {
+        } catch (final UnsupportedOperationException e) {
             return; // skip this test if one of those calls is unsupported
         } finally {
             pool.close();
@@ -279,7 +279,7 @@ public abstract class TestKeyedObjectPool {
     public void testBaseBorrow() {
         try {
             pool = makeEmptyPool(3);
-        } catch(final UnsupportedOperationException uoe) {
+        } catch (final UnsupportedOperationException uoe) {
             return; // skip this test if unsupported
         }
         final Object keya = makeKey(0);
@@ -297,7 +297,7 @@ public abstract class TestKeyedObjectPool {
     public void testBaseBorrowReturn() {
         try {
             pool = makeEmptyPool(3);
-        } catch(final UnsupportedOperationException uoe) {
+        } catch (final UnsupportedOperationException uoe) {
             return; // skip this test if unsupported
         }
         final Object keya = makeKey(0);
@@ -336,7 +336,7 @@ public abstract class TestKeyedObjectPool {
     public void testBaseClear() {
         try {
             pool = makeEmptyPool(3);
-        } catch(final UnsupportedOperationException uoe) {
+        } catch (final UnsupportedOperationException uoe) {
             return; // skip this test if unsupported
         }
         final Object keya = makeKey(0);
@@ -362,7 +362,7 @@ public abstract class TestKeyedObjectPool {
     public void testBaseInvalidateObject() {
         try {
             pool = makeEmptyPool(3);
-        } catch(final UnsupportedOperationException uoe) {
+        } catch (final UnsupportedOperationException uoe) {
             return; // skip this test if unsupported
         }
         final Object keya = makeKey(0);
@@ -385,7 +385,7 @@ public abstract class TestKeyedObjectPool {
     public void testBaseNumActiveNumIdle() {
         try {
             pool = makeEmptyPool(3);
-        } catch(final UnsupportedOperationException uoe) {
+        } catch (final UnsupportedOperationException uoe) {
             return; // skip this test if unsupported
         }
         final Object keya = makeKey(0);
@@ -414,7 +414,7 @@ public abstract class TestKeyedObjectPool {
     public void testBaseNumActiveNumIdle2() {
         try {
             pool = makeEmptyPool(6);
-        } catch(final UnsupportedOperationException uoe) {
+        } catch (final UnsupportedOperationException uoe) {
             return; // skip this test if unsupported
         }
         final Object keya = makeKey(0);
@@ -474,7 +474,7 @@ public abstract class TestKeyedObjectPool {
         final KeyedObjectPool<Object, Object, RuntimeException> pool;
         try {
             pool = makeEmptyPool(new TestFactory());
-        } catch(final UnsupportedOperationException uoe) {
+        } catch (final UnsupportedOperationException uoe) {
             return; // test not supported
         }
 
@@ -509,7 +509,7 @@ public abstract class TestKeyedObjectPool {
         final KeyedObjectPool<Object, Object, PrivateException> pool;
         try {
             pool = makeEmptyPool(factory);
-        } catch(final UnsupportedOperationException uoe) {
+        } catch (final UnsupportedOperationException uoe) {
             return; // test not supported
         }
         final List<MethodCall> expectedMethods = new ArrayList<>();
@@ -547,7 +547,7 @@ public abstract class TestKeyedObjectPool {
         final KeyedObjectPool<Object, Object, PrivateException> pool;
         try {
             pool = makeEmptyPool(factory);
-        } catch(final UnsupportedOperationException uoe) {
+        } catch (final UnsupportedOperationException uoe) {
             return; // test not supported
         }
         final List<MethodCall> expectedMethods = new ArrayList<>();
@@ -625,7 +625,7 @@ public abstract class TestKeyedObjectPool {
         final KeyedObjectPool<Object, Object, PrivateException> pool;
         try {
             pool = makeEmptyPool(factory);
-        } catch(final UnsupportedOperationException uoe) {
+        } catch (final UnsupportedOperationException uoe) {
             return; // test not supported
         }
         final List<MethodCall> expectedMethods = new ArrayList<>();
@@ -672,7 +672,7 @@ public abstract class TestKeyedObjectPool {
         final KeyedObjectPool<Object, Object, PrivateException> pool;
         try {
             pool = makeEmptyPool(factory);
-        } catch(final UnsupportedOperationException uoe) {
+        } catch (final UnsupportedOperationException uoe) {
             return; // test not supported
         }
         final List<MethodCall> expectedMethods = new ArrayList<>();
@@ -706,7 +706,7 @@ public abstract class TestKeyedObjectPool {
         final KeyedObjectPool<Object, Object, PrivateException> pool;
         try {
             pool = makeEmptyPool(factory);
-        } catch(final UnsupportedOperationException uoe) {
+        } catch (final UnsupportedOperationException uoe) {
             return; // test not supported
         }
         final List<MethodCall> expectedMethods = new ArrayList<>();
diff --git a/src/test/java/org/apache/commons/pool2/TestObjectPool.java 
b/src/test/java/org/apache/commons/pool2/TestObjectPool.java
index 7eb9107f..d4776229 100644
--- a/src/test/java/org/apache/commons/pool2/TestObjectPool.java
+++ b/src/test/java/org/apache/commons/pool2/TestObjectPool.java
@@ -118,7 +118,7 @@ public abstract class TestObjectPool {
         final ObjectPool<Object, PrivateException> pool;
         try {
             pool = makeEmptyPool(factory);
-        } catch(final UnsupportedOperationException uoe) {
+        } catch (final UnsupportedOperationException uoe) {
             return; // test not supported
         }
         final List<MethodCall> expectedMethods = new ArrayList<>();

Reply via email to