Skip to content

Commit b106300

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

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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)