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
The following commit(s) were added to refs/heads/master by this push: new ebb1474 Javadoc fix (Java 11): Replace <tt>Foo</tt> with {@code Foo} ebb1474 is described below commit ebb1474b9d752644855a158fefb21c136b941631 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri Jul 31 12:03:12 2020 -0400 Javadoc fix (Java 11): Replace <tt>Foo</tt> with {@code Foo} Update Java JRE Javadoc link. --- pom.xml | 8 ++++---- .../apache/commons/dbcp2/cpdsadapter/DriverAdapterCPDS.java | 13 ++++++------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/pom.xml b/pom.xml index fc25f09..2d8c7db 100644 --- a/pom.xml +++ b/pom.xml @@ -407,8 +407,8 @@ <version>${commons.javadoc.version}</version> <configuration> <links> - <link>http://docs.oracle.com/javase/7/docs/api</link> - <link>https://commons.apache.org/proper/commons-pool/api-${commons.pool.version}</link> + <link>http://docs.oracle.com/javase/8/docs/api</link> + <link>https://commons.apache.org/proper/commons-pool/apidocs</link> <link>http://docs.oracle.com/javaee/7/api/</link> </links> </configuration> @@ -464,8 +464,8 @@ <version>${commons.javadoc.version}</version> <configuration> <links> - <link>http://docs.oracle.com/javase/7/docs/api</link> - <link>https://commons.apache.org/proper/commons-pool/api-${commons.pool.version}</link> + <link>http://docs.oracle.com/javase/8/docs/api</link> + <link>https://commons.apache.org/proper/commons-pool/apidocs</link> <link>http://docs.oracle.com/javaee/7/api/</link> </links> </configuration> diff --git a/src/main/java/org/apache/commons/dbcp2/cpdsadapter/DriverAdapterCPDS.java b/src/main/java/org/apache/commons/dbcp2/cpdsadapter/DriverAdapterCPDS.java index bd3d297..b7166ab 100644 --- a/src/main/java/org/apache/commons/dbcp2/cpdsadapter/DriverAdapterCPDS.java +++ b/src/main/java/org/apache/commons/dbcp2/cpdsadapter/DriverAdapterCPDS.java @@ -37,6 +37,7 @@ import javax.naming.spi.ObjectFactory; import javax.sql.ConnectionPoolDataSource; import javax.sql.PooledConnection; +import org.apache.commons.dbcp2.BasicDataSource; import org.apache.commons.dbcp2.DelegatingPreparedStatement; import org.apache.commons.dbcp2.PStmtKey; import org.apache.commons.dbcp2.Utils; @@ -621,17 +622,15 @@ public class DriverAdapterCPDS implements ConnectionPoolDataSource, Referenceabl /** * Sets the number of statements to examine during each run of the idle object evictor thread (if any). * <p> - * When a negative value is supplied, <tt>ceil({*link #numIdle})/abs({*link #getNumTestsPerEvictionRun})</tt> tests - * will be run. I.e., when the value is <i>-n</i>, roughly one <i>n</i>th of the idle objects will be tested per - * run. + * When a negative value is supplied, + * <code>ceil({@link BasicDataSource#getNumIdle})/abs({@link #getNumTestsPerEvictionRun})</code> tests will be run. + * I.e., when the value is <i>-n</i>, roughly one <i>n</i>th of the idle objects will be tested per run. * </p> * - * @param numTestsPerEvictionRun - * number of statements to examine per run + * @param numTestsPerEvictionRun number of statements to examine per run * @see #getNumTestsPerEvictionRun() * @see #setTimeBetweenEvictionRunsMillis(long) - * @throws IllegalStateException - * if {@link #getPooledConnection()} has been called + * @throws IllegalStateException if {@link #getPooledConnection()} has been called */ public void setNumTestsPerEvictionRun(final int numTestsPerEvictionRun) { assertInitializationAllowed();