Skip to content

Commit 457fad2

Browse files
committed
Format only changes
1 parent 7dfad3a commit 457fad2

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

ebean-datasource-api/src/main/java/io/ebean/datasource/DataSourcePoolNewConnectionListener.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* A {@link DataSourcePool} listener which allows you to hook on the create connections process of the pool.
77
*/
88
public interface DataSourcePoolNewConnectionListener {
9+
910
/**
1011
* Called after a connection has been created, before any initialization.
1112
* @param connection the created connection

ebean-datasource/src/main/java/io/ebean/datasource/pool/ConnectionPool.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ private void testConnection() {
436436
* Initializes the connection we got from the driver.
437437
*/
438438
private Connection initConnection(Connection conn) throws SQLException {
439-
if(connectionListener!=null) {
439+
if (connectionListener != null) {
440440
connectionListener.onCreatedConnection(conn);
441441
}
442442
conn.setAutoCommit(autoCommit);
@@ -475,7 +475,7 @@ private Connection initConnection(Connection conn) throws SQLException {
475475
}
476476
}
477477
}
478-
if(connectionListener!=null) {
478+
if (connectionListener != null) {
479479
connectionListener.onAfterInitialized(conn);
480480
}
481481
return conn;

ebean-datasource/src/test/java/io/ebean/datasource/pool/ConnectionPoolNewConnectionListenerTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import static org.junit.jupiter.api.Assertions.*;
1111

1212
class ConnectionPoolNewConnectionListenerTest {
13+
1314
private ConnectionPool pool;
1415

1516
private final HashMap<Connection, Integer> createdConnections = new HashMap<>();

0 commit comments

Comments
 (0)