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 2024/12/15 23:01:42 UTC

(commons-dbcp) 01/03: Fox parameter name

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 adc3877d1fc4531df65ca32eb2771182b4e776a3
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sun Dec 15 17:15:11 2024 -0500

    Fox parameter name
---
 .../commons/dbcp2/datasources/KeyedCPDSConnectionFactory.java       | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/commons/dbcp2/datasources/KeyedCPDSConnectionFactory.java b/src/main/java/org/apache/commons/dbcp2/datasources/KeyedCPDSConnectionFactory.java
index 63c85d6e..c20b4d13 100644
--- a/src/main/java/org/apache/commons/dbcp2/datasources/KeyedCPDSConnectionFactory.java
+++ b/src/main/java/org/apache/commons/dbcp2/datasources/KeyedCPDSConnectionFactory.java
@@ -244,12 +244,12 @@ final class KeyedCPDSConnectionFactory implements KeyedPooledObjectFactory<UserP
      * Sets the maximum lifetime of a connection after which the connection will always fail activation,
      * passivation and validation.
      *
-     * @param maxConnLifetimeMillis
+     * @param maxConnDuration
      *            A value of zero or less indicates an infinite lifetime. The default value is -1 milliseconds.
      * @since 2.10.0
      */
-    public void setMaxConn(final Duration maxConnLifetimeMillis) {
-        this.maxConnDuration = maxConnLifetimeMillis;
+    public void setMaxConn(final Duration maxConnDuration) {
+        this.maxConnDuration = maxConnDuration;
     }
 
     /**