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

commit 5cf904c9538bfb8059f40788a8e6a78d3d6815c0
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Nov 23 15:19:47 2024 -0500

    Javadoc
---
 .../org/apache/commons/dbcp2/datasources/PerUserPoolDataSource.java | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/dbcp2/datasources/PerUserPoolDataSource.java 
b/src/main/java/org/apache/commons/dbcp2/datasources/PerUserPoolDataSource.java
index 0901c81e..f89fb443 100644
--- 
a/src/main/java/org/apache/commons/dbcp2/datasources/PerUserPoolDataSource.java
+++ 
b/src/main/java/org/apache/commons/dbcp2/datasources/PerUserPoolDataSource.java
@@ -240,7 +240,7 @@ public class PerUserPoolDataSource extends 
InstanceKeyDataSource {
     }
 
     /**
-     * Gets the underlying pool but does NOT allocate it.
+     * Gets the underlying pre-allocated pool (does NOT allocate).
      *
      * @param manager A CPDSConnectionFactory.
      * @return the underlying pool.
@@ -583,8 +583,7 @@ public class PerUserPoolDataSource extends 
InstanceKeyDataSource {
     }
 
     @Override
-    protected PooledConnectionAndInfo getPooledConnectionAndInfo(final String 
userName, final String password)
-            throws SQLException {
+    protected PooledConnectionAndInfo getPooledConnectionAndInfo(final String 
userName, final String password) throws SQLException {
         final PoolKey key = getPoolKey(userName);
         ObjectPool<PooledConnectionAndInfo> pool;
         PooledConnectionManager manager;
@@ -600,7 +599,6 @@ public class PerUserPoolDataSource extends 
InstanceKeyDataSource {
             }
             pool = getCPDSConnectionFactoryPool(manager);
         }
-
         PooledConnectionAndInfo info = null;
         try {
             info = pool.borrowObject();

Reply via email to