Skip to content

Commit 6e249a5

Browse files
committed
remove unused @internal method
1 parent 84062a1 commit 6e249a5

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

hibernate-c3p0/src/main/java/org/hibernate/c3p0/internal/C3P0ConnectionProvider.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ public class C3P0ConnectionProvider
7474
private static final String C3P0_STYLE_MAX_STATEMENTS = "c3p0.maxStatements";
7575
private static final String C3P0_STYLE_ACQUIRE_INCREMENT = "c3p0.acquireIncrement";
7676
private static final String C3P0_STYLE_IDLE_CONNECTION_TEST_PERIOD = "c3p0.idleConnectionTestPeriod";
77-
78-
//swaldman 2006-08-28: define c3p0-style configuration parameters for initialPoolSize, which
79-
// hibernate sensibly lets default to minPoolSize, but we'll let users
80-
// override it with the c3p0-style property if they want.
77+
//swaldman 2006-08-28: define c3p0-style configuration parameters for initialPoolSize,
78+
// which hibernate sensibly lets default to minPoolSize, but we'll
79+
// let users override it with the c3p0-style property if they want.
8180
private static final String C3P0_STYLE_INITIAL_POOL_SIZE = "c3p0.initialPoolSize";
81+
8282
private DataSource dataSource;
8383
private Integer isolation;
8484
private boolean autocommit;
@@ -161,7 +161,7 @@ public void configure(Map<String, Object> properties) {
161161
jdbcDriverClass,
162162
dialect.getVersion(),
163163
Boolean.toString( autocommit ),
164-
isolation != null ? ConnectionProviderInitiator.toIsolationNiceName( isolation ) : null,
164+
isolation == null ? null : ConnectionProviderInitiator.toIsolationNiceName( isolation ),
165165
requireNonNullElse( getInteger( C3P0_STYLE_MIN_POOL_SIZE.substring( 5 ), poolSettings ),
166166
DEFAULT_MIN_POOL_SIZE ),
167167
requireNonNullElse( getInteger( C3P0_STYLE_MAX_POOL_SIZE.substring( 5 ), poolSettings ),

hibernate-core/src/main/java/org/hibernate/engine/jdbc/connections/internal/DriverManagerConnectionProviderImpl.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -361,11 +361,6 @@ public boolean isValid(Connection connection) throws SQLException {
361361
return true;
362362
}
363363

364-
@Internal
365-
public void releasePooledConnections() {
366-
state.pool.releasePooledConnections();
367-
}
368-
369364
public static class PooledConnections {
370365

371366
private final ConcurrentLinkedQueue<Connection> allConnections = new ConcurrentLinkedQueue<>();
@@ -438,7 +433,7 @@ protected Connection releaseConnection(Connection conn) {
438433
return null;
439434
}
440435

441-
public Connection poll() throws SQLException {
436+
public Connection poll() {
442437
Connection conn;
443438
do {
444439
conn = availableConnections.poll();

0 commit comments

Comments
 (0)