Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4e848f3

Browse files
committedFeb 5, 2025··
Polishing.
Refine Pageable sort override. See #1011
1 parent eefb1dc commit 4e848f3

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed
 

‎src/main/java/org/springframework/data/repository/query/FluentQuery.java

+4-6
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,8 @@ default Window<T> scroll(ScrollPosition scrollPosition) {
184184
* Get a page of matching elements for {@link Pageable}.
185185
*
186186
* @param pageable the pageable to request a paged result, can be {@link Pageable#unpaged()}, must not be
187-
* {@literal null}. The given {@link Pageable} will override any previously specified {@link Sort sort} if
188-
* the {@link Sort} object is not {@link Sort#isUnsorted()}. Any potentially specified {@link #limit(int)}
189-
* will be overridden by {@link Pageable#getPageSize()}.
187+
* {@literal null}. The given {@link Pageable} will override any previously specified {@link Sort sort}.
188+
* Any potentially specified {@link #limit(int)} will be overridden by {@link Pageable#getPageSize()}.
190189
* @return
191190
*/
192191
Page<T> page(Pageable pageable);
@@ -293,9 +292,8 @@ default Mono<Window<T>> scroll(ScrollPosition scrollPosition) {
293292
* Get a page of matching elements for {@link Pageable}.
294293
*
295294
* @param pageable the pageable to request a paged result, can be {@link Pageable#unpaged()}, must not be
296-
* {@literal null}. The given {@link Pageable} will override any previously specified {@link Sort sort} if
297-
* the {@link Sort} object is not {@link Sort#isUnsorted()}. Any potentially specified {@link #limit(int)}
298-
* will be overridden by {@link Pageable#getPageSize()}.
295+
* {@literal null}. The given {@link Pageable} will override any previously specified {@link Sort sort}.
296+
* Any potentially specified {@link #limit(int)} will be overridden by {@link Pageable#getPageSize()}.
299297
* @return
300298
*/
301299
Mono<Page<T>> page(Pageable pageable);

0 commit comments

Comments
 (0)
Please sign in to comment.