Skip to content

Commit b0d37bd

Browse files
committed
DATAJDBC-529 - Polishing.
Rearrange imports. Original pull request: #212.
1 parent 370ee44 commit b0d37bd

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/PartTreeJdbcQuery.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
*/
1616
package org.springframework.data.jdbc.repository.query;
1717

18+
import java.sql.ResultSet;
19+
1820
import org.springframework.data.domain.Sort;
1921
import org.springframework.data.jdbc.core.convert.JdbcConverter;
2022
import org.springframework.data.relational.core.dialect.Dialect;
@@ -29,8 +31,6 @@
2931
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcOperations;
3032
import org.springframework.util.Assert;
3133

32-
import java.sql.ResultSet;
33-
3434
/**
3535
* An {@link AbstractJdbcQuery} implementation based on a {@link PartTree}.
3636
*
@@ -57,8 +57,8 @@ public class PartTreeJdbcQuery extends AbstractJdbcQuery {
5757
* @param operations must not be {@literal null}.
5858
* @param rowMapper must not be {@literal null}.
5959
*/
60-
public PartTreeJdbcQuery(RelationalMappingContext context, JdbcQueryMethod queryMethod, Dialect dialect, JdbcConverter converter,
61-
NamedParameterJdbcOperations operations, RowMapper<Object> rowMapper) {
60+
public PartTreeJdbcQuery(RelationalMappingContext context, JdbcQueryMethod queryMethod, Dialect dialect,
61+
JdbcConverter converter, NamedParameterJdbcOperations operations, RowMapper<Object> rowMapper) {
6262

6363
super(queryMethod, operations, rowMapper);
6464

spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/JdbcRepositoryIntegrationTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import static java.util.Arrays.*;
1919
import static org.assertj.core.api.Assertions.*;
20+
import static org.assertj.core.api.SoftAssertions.*;
2021

2122
import lombok.Data;
2223

@@ -26,11 +27,11 @@
2627
import java.util.ArrayList;
2728
import java.util.List;
2829

29-
import org.assertj.core.api.SoftAssertions;
3030
import org.junit.Before;
3131
import org.junit.ClassRule;
3232
import org.junit.Rule;
3333
import org.junit.Test;
34+
3435
import org.springframework.beans.factory.annotation.Autowired;
3536
import org.springframework.beans.factory.config.PropertiesFactoryBean;
3637
import org.springframework.context.ApplicationListener;
@@ -360,7 +361,7 @@ public void existsWorksAsExpected() {
360361

361362
DummyEntity dummy = repository.save(createDummyEntity());
362363

363-
SoftAssertions.assertSoftly(softly -> {
364+
assertSoftly(softly -> {
364365

365366
softly.assertThat(repository.existsByName(dummy.getName())) //
366367
.describedAs("Positive") //

0 commit comments

Comments
 (0)