Remove trailing whitespace in querydsl-sql-spring

This commit is contained in:
John Tims 2015-05-09 00:56:32 -04:00
parent aa6483fcc1
commit 8d511222ff
2 changed files with 8 additions and 8 deletions

View File

@ -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;
}
}

View File

@ -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);