Skip to content

Commit 5117e09

Browse files
committed
Applied changes from code review.
See #2537 Original pull request #2540
1 parent 28ea8f2 commit 5117e09

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/main/java/org/springframework/data/repository/PagingAndSortingRepository.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.springframework.data.domain.Sort;
2121

2222
/**
23-
* Repository interface to provide methods to retrieve entities using the pagination and sorting abstraction. In many
23+
* Repository fragment to provide methods to retrieve entities using the pagination and sorting abstraction. In many
2424
* cases this will be combined with {@link CrudRepository} or similar or with manually added methods to provide CRUD
2525
* functionality.
2626
*

src/main/java/org/springframework/data/repository/reactive/ReactiveSortingRepository.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import org.springframework.data.repository.Repository;
2424

2525
/**
26-
* Repository interface that provides methods to retrieve entities using the sorting abstraction. In many cases it
26+
* Repository fragment to provide methods to retrieve entities using the sorting abstraction. In many cases it
2727
* should be combined with {@link ReactiveCrudRepository} or a similar repository interface in order to add CRUD
2828
* functionality.
2929
*

src/main/java/org/springframework/data/repository/reactive/RxJava3SortingRepository.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import org.springframework.data.repository.Repository;
2323

2424
/**
25-
* Repository interface that provides methods to retrieve entities using the sorting abstraction. In many cases this
25+
* Repository fragment to provide methods to retrieve entities using the sorting abstraction. In many cases this
2626
* should be combined with {@link RxJava3CrudRepository} or a similar interface to provide CRUD functionality.
2727
*
2828
* @author Mark Paluch

src/main/kotlin/org/springframework/data/repository/kotlin/CoroutineSortingRepository.kt

+9-9
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import org.springframework.data.repository.NoRepositoryBean
2121
import org.springframework.data.repository.Repository
2222

2323
/**
24-
* Repository interface that provides methods to retrieve entities using the sorting
24+
* Repository fragment to provide methods to retrieve entities using the sorting
2525
* abstraction.
2626
*
2727
* In many cases this should be combined with [CoroutineCrudRepository] or similar or manually added methods to provide CRUD functionality.
@@ -36,12 +36,12 @@ import org.springframework.data.repository.Repository
3636
@NoRepositoryBean
3737
interface CoroutineSortingRepository<T, ID> : Repository<T, ID> {
3838

39-
/**
40-
* Returns all entities sorted by the given options.
41-
*
42-
* @param sort must not be null.
43-
* @return all entities sorted by the given options.
44-
* @throws IllegalArgumentException in case the given [Sort] is null.
45-
*/
46-
fun findAll(sort: Sort): Flow<T>
39+
/**
40+
* Returns all entities sorted by the given options.
41+
*
42+
* @param sort must not be null.
43+
* @return all entities sorted by the given options.
44+
* @throws IllegalArgumentException in case the given [Sort] is null.
45+
*/
46+
fun findAll(sort: Sort): Flow<T>
4747
}

0 commit comments

Comments
 (0)