Skip to content

Commit 79c345f

Browse files
committed
refactor(spring-data-40): after spotless apply
1 parent 91a5f26 commit 79c345f

File tree

5 files changed

+17
-18
lines changed

5 files changed

+17
-18
lines changed

tarantool-spring-data/tarantool-spring-data-40/src/main/java/io/tarantool/spring/data40/query/TarantoolChunk.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
*/
2929
abstract class TarantoolChunk<T> implements Slice<T>, Serializable {
3030

31-
@Serial
32-
private static final long serialVersionUID = 867755909294344406L;
31+
@Serial private static final long serialVersionUID = 867755909294344406L;
3332

3433
private final List<T> content = new ArrayList<>();
3534

tarantool-spring-data/tarantool-spring-data-40/src/main/java/io/tarantool/spring/data40/query/TarantoolPageable.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ public interface TarantoolPageable<T> extends Pageable {
2525
*
2626
* @return tuple cursor of domain type.
2727
*/
28-
@Nullable
29-
T getTupleCursor();
28+
@Nullable T getTupleCursor();
3029

3130
/**
3231
* Returns the {@link TarantoolPageable} for previous page or the {@link TarantoolPageable} for
@@ -66,6 +65,5 @@ public interface TarantoolPageable<T> extends Pageable {
6665
* @return {@link TarantoolPageable} which has {@code cursor == null}, page number is 0, the rest
6766
* parameters are equivalent to the parameters of the current {@link TarantoolPageable}.
6867
*/
69-
@NonNull
70-
TarantoolPageable<T> first();
68+
@NonNull TarantoolPageable<T> first();
7169
}

tarantool-spring-data/tarantool-spring-data-40/src/test/java/io/tarantool/spring/data40/config/GenericTarantoolConfigurationTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ public abstract class GenericTarantoolConfigurationTest implements ApplicationCo
3131
@Autowired protected TarantoolProperties properties;
3232

3333
@Override
34-
public void setApplicationContext(@NonNull ApplicationContext applicationContext) throws BeansException {
34+
public void setApplicationContext(@NonNull ApplicationContext applicationContext)
35+
throws BeansException {
3536
this.applicationContext = applicationContext;
3637
}
3738

tarantool-spring-data/tarantool-spring-data-40/src/test/java/io/tarantool/spring/data40/core/mapping/TarantoolMappingContextTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ void testCreateEntityWithWrongCompositeKeyPartCount() {
116116
}
117117

118118
/**
119-
* Create a mappingContext from the passed domain classes. After initialize - create for them PersistentEntities and
120-
* add PersistentProperties to them.
119+
* Create a mappingContext from the passed domain classes. After initialize - create for them
120+
* PersistentEntities and add PersistentProperties to them.
121121
*/
122122
private void initEntities(Set<Class<?>> entitySet) {
123123
TarantoolMappingContext<?, ?> mappingContext = new TarantoolMappingContext<>();

tarantool-spring-data/tarantool-spring-data-40/src/test/java/io/tarantool/spring/data40/query/TarantoolPageImplTest.java

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,16 @@ class TarantoolPageImplTest {
4343
private static final long MULTIPLIER = 2L;
4444

4545
private static final BiFunction<Integer, String, Long> GET_TOTAL_ELEMENTS_FOR_TEST_DATA_CASE =
46-
(pageSize, operator) -> switch (operator) {
47-
// pageSize > totalPageCount
48-
case ">" -> pageSize / MULTIPLIER;
49-
// pageSize < totalPageCount
50-
case "<" -> MULTIPLIER * pageSize;
51-
// pageSize == totalPageCount
52-
case "==" -> Long.valueOf(pageSize);
53-
default -> throw new IllegalArgumentException("The passed option isn't supported");
54-
};
46+
(pageSize, operator) ->
47+
switch (operator) {
48+
// pageSize > totalPageCount
49+
case ">" -> pageSize / MULTIPLIER;
50+
// pageSize < totalPageCount
51+
case "<" -> MULTIPLIER * pageSize;
52+
// pageSize == totalPageCount
53+
case "==" -> Long.valueOf(pageSize);
54+
default -> throw new IllegalArgumentException("The passed option isn't supported");
55+
};
5556

5657
private static final List<Person> EMPTY_CONTENT = Collections.emptyList();
5758

0 commit comments

Comments
 (0)