Skip to content

Commit 9767322

Browse files
committed
No change - format code only
1 parent dd7d0c6 commit 9767322

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public final Struct createStruct(String typeName, Object[] attributes) throws SQ
9494
@SuppressWarnings("unchecked")
9595
public final <T> T unwrap(Class<T> iface) throws SQLException {
9696
if (iface.equals(java.sql.Connection.class)) {
97-
return (T)delegate;
97+
return (T) delegate;
9898
}
9999
return delegate.unwrap(iface);
100100
}

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ public ConnectionPool(String name, DataSourceConfig params) {
157157

158158
private void init() {
159159
try {
160-
if (config.useInitDatabase()) {
161-
initialiseDatabase();
162-
}
163-
initialiseConnections();
160+
if (config.useInitDatabase()) {
161+
initialiseDatabase();
162+
}
163+
initialiseConnections();
164164
} catch (SQLException e) {
165165
throw new DataSourceInitialiseException("Error initialising DataSource with user: " + user + " url:" + url + " error:" + e.getMessage(), e);
166166
}
@@ -195,11 +195,11 @@ private void initialiseConnections() throws SQLException {
195195
queue.ensureMinimumConnections();
196196
startHeartBeatIfStopped();
197197
String msg = "DataSourcePool [" + name +
198-
"] autoCommit[" + autoCommit +
199-
"] transIsolation[" + TransactionIsolation.getDescription(transactionIsolation) +
200-
"] min[" + minConnections +
201-
"] max[" + maxConnections +
202-
"] in[" + (System.currentTimeMillis() - start) + "ms]";
198+
"] autoCommit[" + autoCommit +
199+
"] transIsolation[" + TransactionIsolation.getDescription(transactionIsolation) +
200+
"] min[" + minConnections +
201+
"] max[" + maxConnections +
202+
"] in[" + (System.currentTimeMillis() - start) + "ms]";
203203
logger.info(msg);
204204
} catch (SQLException e) {
205205
if (failOnStart) {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public void setNString(int parameterIndex, String value) throws SQLException {
179179
}
180180

181181
public void setNCharacterStream(int parameterIndex, Reader value, long length)
182-
throws SQLException {
182+
throws SQLException {
183183
delegate.setNCharacterStream(parameterIndex, value, length);
184184
}
185185

@@ -204,7 +204,7 @@ public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException
204204
}
205205

206206
public void setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength)
207-
throws SQLException {
207+
throws SQLException {
208208
delegate.setObject(parameterIndex, x, targetSqlType, scaleOrLength);
209209
}
210210

@@ -217,7 +217,7 @@ public void setBinaryStream(int parameterIndex, InputStream x, long length) thro
217217
}
218218

219219
public void setCharacterStream(int parameterIndex, Reader reader, long length)
220-
throws SQLException {
220+
throws SQLException {
221221
delegate.setCharacterStream(parameterIndex, reader, length);
222222
}
223223

0 commit comments

Comments
 (0)