You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/03/01 15:57:06 UTC

[commons-pool] branch master updated (7b02144d -> c26c92f6)

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

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


    from 7b02144d Javadoc
     new a56e5afe Format tweak
     new c26c92f6 Format tweak

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../apache/commons/pool2/impl/GenericKeyedObjectPool.java  |  2 +-
 .../apache/commons/pool2/impl/TestGenericObjectPool.java   | 14 +++++++-------
 2 files changed, 8 insertions(+), 8 deletions(-)


[commons-pool] 02/02: Format tweak

Posted by gg...@apache.org.
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

commit c26c92f663bc446a3d1bf173e217641cbdb0259b
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Mar 1 10:56:52 2023 -0500

    Format tweak
---
 src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java b/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java
index cddda909..206e5196 100644
--- a/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java
+++ b/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java
@@ -875,7 +875,7 @@ public class GenericKeyedObjectPool<K, T, E extends Exception> extends BaseGener
 
         try {
             boolean isIdle;
-            synchronized(toDestroy) {
+            synchronized (toDestroy) {
                 // Check idle state directly
                 isIdle = toDestroy.getState().equals(PooledObjectState.IDLE);
                 // If idle, not under eviction test, or always is true, remove instance,


[commons-pool] 01/02: Format tweak

Posted by gg...@apache.org.
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

commit a56e5afe9a7124bd41c0d7561c81836bec280ae3
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Mar 1 10:56:44 2023 -0500

    Format tweak
---
 .../apache/commons/pool2/impl/TestGenericObjectPool.java   | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/test/java/org/apache/commons/pool2/impl/TestGenericObjectPool.java b/src/test/java/org/apache/commons/pool2/impl/TestGenericObjectPool.java
index 9d573767..b32eb1ca 100644
--- a/src/test/java/org/apache/commons/pool2/impl/TestGenericObjectPool.java
+++ b/src/test/java/org/apache/commons/pool2/impl/TestGenericObjectPool.java
@@ -285,7 +285,7 @@ public class TestGenericObjectPool extends TestBaseObjectPool {
             final boolean evenTest;
             final boolean oddTest;
             final int counter;
-            synchronized(this) {
+            synchronized (this) {
                 hurl = exceptionOnActivate;
                 evenTest = evenValid;
                 oddTest = oddValid;
@@ -300,14 +300,14 @@ public class TestGenericObjectPool extends TestBaseObjectPool {
         public void destroyObject(final PooledObject<String> obj) throws TestException {
             final long waitLatency;
             final boolean hurl;
-            synchronized(this) {
+            synchronized (this) {
                 waitLatency = destroyLatency;
                 hurl = exceptionOnDestroy;
             }
             if (waitLatency > 0) {
                 doWait(waitLatency);
             }
-            synchronized(this) {
+            synchronized (this) {
                 activeCount--;
             }
             if (hurl) {
@@ -334,7 +334,7 @@ public class TestGenericObjectPool extends TestBaseObjectPool {
         @Override
         public PooledObject<String> makeObject() {
             final long waitLatency;
-            synchronized(this) {
+            synchronized (this) {
                 activeCount++;
                 if (activeCount > maxTotal) {
                     throw new IllegalStateException(
@@ -346,7 +346,7 @@ public class TestGenericObjectPool extends TestBaseObjectPool {
                 doWait(waitLatency);
             }
             final int counter;
-            synchronized(this) {
+            synchronized (this) {
                 counter = makeCounter++;
             }
             return new DefaultPooledObject<>(String.valueOf(counter));
@@ -355,7 +355,7 @@ public class TestGenericObjectPool extends TestBaseObjectPool {
         @Override
         public void passivateObject(final PooledObject<String> obj) throws TestException {
             final boolean hurl;
-            synchronized(this) {
+            synchronized (this) {
                 hurl = exceptionOnPassivate;
             }
             if (hurl) {
@@ -420,7 +420,7 @@ public class TestGenericObjectPool extends TestBaseObjectPool {
             final boolean oddTest;
             final long waitLatency;
             final int counter;
-            synchronized(this) {
+            synchronized (this) {
                 validate = enableValidation;
                 throwException = exceptionOnValidate;
                 evenTest = evenValid;