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 d368426bd061621ff93a88cc5a8ec18661b82b1d
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Nov 23 16:40:45 2024 -0500

    Javadoc
---
 src/main/java/org/apache/commons/dbcp2/PoolingDriver.java | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/commons/dbcp2/PoolingDriver.java 
b/src/main/java/org/apache/commons/dbcp2/PoolingDriver.java
index f553740f..eec6a0e0 100644
--- a/src/main/java/org/apache/commons/dbcp2/PoolingDriver.java
+++ b/src/main/java/org/apache/commons/dbcp2/PoolingDriver.java
@@ -87,14 +87,24 @@ public class PoolingDriver implements Driver {
     /** The map of registered pools. */
     protected static final HashMap<String, ObjectPool<? extends Connection>> 
pools = new HashMap<>();
 
-    /** My URL prefix */
+    /** 
+     * The Apache Commons connection string prefix {@value}.
+     */
     public static final String URL_PREFIX = "jdbc:apache:commons:dbcp:";
 
+    /**
+     * The length of {@Link #URL_PREFIX}.
+     */
     protected static final int URL_PREFIX_LEN = URL_PREFIX.length();
 
-    // version numbers
+    /**
+     * Major version number.
+     */
     protected static final int MAJOR_VERSION = 1;
 
+    /**
+     * Minor version number.
+     */
     protected static final int MINOR_VERSION = 0;
 
     /** Controls access to the underlying connection */
@@ -147,7 +157,6 @@ public class PoolingDriver implements Driver {
     public Connection connect(final String url, final Properties info) throws 
SQLException {
         if (acceptsURL(url)) {
             final ObjectPool<? extends Connection> pool = 
getConnectionPool(url.substring(URL_PREFIX_LEN));
-
             try {
                 final Connection conn = pool.borrowObject();
                 if (conn == null) {

Reply via email to