This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch POOL_2_X
in repository https://gitbox.apache.org/repos/asf/commons-pool.git

commit 7526c1c5afeeeadd4041746e41e7a64d18b287f9
Author: Gary D. Gregory <[email protected]>
AuthorDate: Tue Feb 11 07:59:48 2025 -0500

    Add Checkstyle RightCurly
---
 src/conf/checkstyle.xml                            |  1 +
 .../commons/pool2/impl/TestSoftRefOutOfMemory.java | 23 ++++++----------------
 2 files changed, 7 insertions(+), 17 deletions(-)

diff --git a/src/conf/checkstyle.xml b/src/conf/checkstyle.xml
index 72800362..33aba112 100644
--- a/src/conf/checkstyle.xml
+++ b/src/conf/checkstyle.xml
@@ -79,6 +79,7 @@
     <module name="ParenPad" />
     <module name="RedundantImport" />
     <module name="RedundantModifier" />
+    <module name="RightCurly" />
     <module name="TypecastParenPad" />
     <module name="VisibilityModifier">
       <property name="packageAllowed" value="true" />
diff --git 
a/src/test/java/org/apache/commons/pool2/impl/TestSoftRefOutOfMemory.java 
b/src/test/java/org/apache/commons/pool2/impl/TestSoftRefOutOfMemory.java
index 79a0aea9..42c176e4 100644
--- a/src/test/java/org/apache/commons/pool2/impl/TestSoftRefOutOfMemory.java
+++ b/src/test/java/org/apache/commons/pool2/impl/TestSoftRefOutOfMemory.java
@@ -216,38 +216,27 @@ public class TestSoftRefOutOfMemory {
      */
     @Test
     public void testOutOfMemoryError() throws Exception {
-        pool = new SoftReferenceObjectPool<>(
-                new OomeFactory(OomeTrigger.CREATE));
-
+        pool = new SoftReferenceObjectPool<>(new 
OomeFactory(OomeTrigger.CREATE));
         try {
             pool.borrowObject();
             fail("Expected out of memory.");
-        }
-        catch (final OutOfMemoryError ex) {
+        } catch (final OutOfMemoryError ex) {
             // expected
         }
         pool.close();
-
-        pool = new SoftReferenceObjectPool<>(
-                new OomeFactory(OomeTrigger.VALIDATE));
-
+        pool = new SoftReferenceObjectPool<>(new 
OomeFactory(OomeTrigger.VALIDATE));
         try {
             pool.borrowObject();
             fail("Expected out of memory.");
-        }
-        catch (final OutOfMemoryError ex) {
+        } catch (final OutOfMemoryError ex) {
             // expected
         }
         pool.close();
-
-        pool = new SoftReferenceObjectPool<>(
-                new OomeFactory(OomeTrigger.DESTROY));
-
+        pool = new SoftReferenceObjectPool<>(new 
OomeFactory(OomeTrigger.DESTROY));
         try {
             pool.borrowObject();
             fail("Expected out of memory.");
-        }
-        catch (final OutOfMemoryError ex) {
+        } catch (final OutOfMemoryError ex) {
             // expected
         }
         pool.close();

Reply via email to