Add missing Javadoc and Javadoc tweaks.

Project: http://git-wip-us.apache.org/repos/asf/commons-dbcp/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-dbcp/commit/9b7cc8b3
Tree: http://git-wip-us.apache.org/repos/asf/commons-dbcp/tree/9b7cc8b3
Diff: http://git-wip-us.apache.org/repos/asf/commons-dbcp/diff/9b7cc8b3

Branch: refs/heads/release
Commit: 9b7cc8b38d7d2ce97ace6e7a9c904f910b7bc096
Parents: 55cc86a
Author: Gary Gregory <garydgreg...@gmail.com>
Authored: Mon Jun 11 18:50:34 2018 -0600
Committer: Gary Gregory <garydgreg...@gmail.com>
Committed: Mon Jun 11 18:50:34 2018 -0600

----------------------------------------------------------------------
 .../java/org/apache/commons/dbcp2/PoolingDataSource.java  | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-dbcp/blob/9b7cc8b3/src/main/java/org/apache/commons/dbcp2/PoolingDataSource.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/dbcp2/PoolingDataSource.java 
b/src/main/java/org/apache/commons/dbcp2/PoolingDataSource.java
index f4d6cbe..d28f7a4 100644
--- a/src/main/java/org/apache/commons/dbcp2/PoolingDataSource.java
+++ b/src/main/java/org/apache/commons/dbcp2/PoolingDataSource.java
@@ -46,6 +46,12 @@ public class PoolingDataSource<C extends Connection> 
implements DataSource, Auto
     /** Controls access to the underlying connection */
     private boolean accessToUnderlyingConnectionAllowed;
 
+    /**
+     * Constructs a new instance backed by the given connection pool.
+     * 
+     * @param pool
+     *            the given connection pool.
+     */
     public PoolingDataSource(final ObjectPool<C> pool) {
         Objects.requireNonNull(pool, "Pool must not be null.");
         this.pool = pool;
@@ -63,7 +69,7 @@ public class PoolingDataSource<C extends Connection> 
implements DataSource, Auto
     }
 
     /**
-     * Close and free all {@link Connection}s from the pool.
+     * Closes and free all {@link Connection}s from the pool.
      *
      * @since 2.1
      */
@@ -118,7 +124,7 @@ public class PoolingDataSource<C extends Connection> 
implements DataSource, Auto
     //--- DataSource methods -----------------------------------------
 
     /**
-     * Return a {@link java.sql.Connection} from my pool, according to the 
contract specified by
+     * Returns a {@link java.sql.Connection} from my pool, according to the 
contract specified by
      * {@link ObjectPool#borrowObject}.
      */
     @Override

Reply via email to