Skip to content

Commit 5d09272

Browse files
DATAREDIS-551 - Polishing.
Fix indentation. Original Pull Request: #220
1 parent 5aef8c3 commit 5d09272

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main/java/org/springframework/data/redis/core/RedisQueryEngine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public Collection<?> execute(final RedisOperationChain criteria, Comparator<?> s
157157
@Override
158158
public long count(final RedisOperationChain criteria, final Serializable keyspace) {
159159

160-
if(criteria == null) {
160+
if (criteria == null) {
161161
return this.getAdapter().count(keyspace);
162162
}
163163

src/test/java/org/springframework/data/redis/repository/RedisRepositoryIntegrationTestBase.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ public void shouldApplyPageableCorrectlyWhenUsingFindAll() {
218218
repo.save(Arrays.asList(eddard, robb, jon));
219219

220220
Page<Person> firstPage = repo.findAll(new PageRequest(0, 2));
221-
assertThat(firstPage.getContent(), hasSize(2));
222-
assertThat(repo.findAll(firstPage.nextPageable()).getContent(), hasSize(1));
221+
assertThat(firstPage.getContent(), hasSize(2));
222+
assertThat(repo.findAll(firstPage.nextPageable()).getContent(), hasSize(1));
223223
}
224224

225225
/**
@@ -235,9 +235,9 @@ public void shouldApplyPageableCorrectlyWhenUsingFindByWithoutCriteria() {
235235
repo.save(Arrays.asList(eddard, robb, jon));
236236

237237
Page<Person> firstPage = repo.findBy(new PageRequest(0, 2));
238-
assertThat(firstPage.getContent(), hasSize(2));
239-
assertThat(firstPage.getTotalElements(), is(equalTo(3L)));
240-
assertThat(repo.findBy(firstPage.nextPageable()).getContent(), hasSize(1));
238+
assertThat(firstPage.getContent(), hasSize(2));
239+
assertThat(firstPage.getTotalElements(), is(equalTo(3L)));
240+
assertThat(repo.findBy(firstPage.nextPageable()).getContent(), hasSize(1));
241241
}
242242

243243
/**

0 commit comments

Comments
 (0)