mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-04 21:01:21 +08:00
Remove trailing whitespace in querydsl-sql-spring
This commit is contained in:
parent
aa6483fcc1
commit
8d511222ff
@ -32,13 +32,13 @@ import org.springframework.jdbc.datasource.DataSourceUtils;
|
||||
* </pre>
|
||||
*/
|
||||
public class SpringConnectionProvider implements Provider<Connection> {
|
||||
|
||||
|
||||
private final DataSource dataSource;
|
||||
|
||||
|
||||
public SpringConnectionProvider(DataSource dataSource) {
|
||||
this.dataSource = dataSource;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Connection get() {
|
||||
Connection connection = DataSourceUtils.getConnection(dataSource);
|
||||
@ -47,5 +47,5 @@ public class SpringConnectionProvider implements Provider<Connection> {
|
||||
}
|
||||
return connection;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -35,15 +35,15 @@ import org.springframework.jdbc.support.SQLStateSQLExceptionTranslator;
|
||||
public class SpringExceptionTranslator implements com.querydsl.sql.SQLExceptionTranslator {
|
||||
|
||||
private final SQLExceptionTranslator translator;
|
||||
|
||||
|
||||
public SpringExceptionTranslator() {
|
||||
this.translator = new SQLStateSQLExceptionTranslator();
|
||||
}
|
||||
|
||||
|
||||
public SpringExceptionTranslator(SQLExceptionTranslator translator) {
|
||||
this.translator = translator;
|
||||
this.translator = translator;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public RuntimeException translate(String sql, List<Object> bindings, SQLException e) {
|
||||
return translator.translate(null, sql, e);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user