From 4b3ce8f30aed2da792d57dc3fe34076f6dfa6022 Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Sun, 15 Dec 2024 14:20:25 -0500 Subject: [PATCH] Remove method from package private class - This change is binary compatible since the class is package-private - Removed org.apache.commons.dbcp2.datasources.CPDSConnectionFactory.setMaxConnLifetimeMillis(long) --- .../dbcp2/datasources/CPDSConnectionFactory.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/main/java/org/apache/commons/dbcp2/datasources/CPDSConnectionFactory.java b/src/main/java/org/apache/commons/dbcp2/datasources/CPDSConnectionFactory.java index 8f0fb4601..c48e83376 100644 --- a/src/main/java/org/apache/commons/dbcp2/datasources/CPDSConnectionFactory.java +++ b/src/main/java/org/apache/commons/dbcp2/datasources/CPDSConnectionFactory.java @@ -297,19 +297,6 @@ public void setMaxConnLifetime(final Duration maxConnDuration) { this.maxConnDuration = maxConnDuration; } - /** - * Sets the maximum lifetime in milliseconds of a connection after which the connection will always fail activation, - * passivation and validation. - * - * @param maxConnLifetimeMillis - * A value of zero or less indicates an infinite lifetime. The default value is -1. - * @deprecated Use {@link #setMaxConn(Duration)}. - */ - @Deprecated - public void setMaxConnLifetimeMillis(final long maxConnLifetimeMillis) { - setMaxConnLifetime(Duration.ofMillis(maxConnLifetimeMillis)); - } - /** * Sets the database password used when creating new connections. *