diff --git a/api/src/main/java/jakarta/data/page/PageRequest.java b/api/src/main/java/jakarta/data/page/PageRequest.java index a79bae3e6..c7c6673c4 100644 --- a/api/src/main/java/jakarta/data/page/PageRequest.java +++ b/api/src/main/java/jakarta/data/page/PageRequest.java @@ -31,7 +31,7 @@ *
A query method of a repository may have a parameter of type * {@code PageRequest} if its return type indicates that it may return * multiple entities, that is, if its return type is an array type, - * {@code List}, {@code Stream}, {@link Page}, or {@link CursoredPage}. + * {@link List}, {@code Stream}, {@link Page}, or {@link CursoredPage}. * The parameter of type {@code PageRequest} must occur after the method * parameters representing regular parameters of the query itself. For * example:
@@ -68,7 +68,6 @@ */ public interface PageRequest { - /** * Creates a new page request with the given page number and with a default size of 10. * @@ -243,7 +242,6 @@ static PageRequest beforeCursor(Cursor cursor, long pageNumber, int maxPageSize, */ PageRequest size(int maxPageSize); - /** * Returns an otherwise-equivalent page request with * {@link #requestTotal()} set to {@code false}, so that @@ -259,7 +257,7 @@ static PageRequest beforeCursor(Cursor cursor, long pageNumber, int maxPageSize, /** * Returns an otherwise-equivalent page request with - * {@link #requestTotal()} set to {@code false}, so that + * {@link #requestTotal()} set to {@code true}, so that * totals will be retrieved from the database. * @return a page request with {@link #requestTotal()} * set to {@code true}. @@ -364,4 +362,4 @@ static Cursor forKey(Object... key) { return new PageRequestCursor(key); } } -} \ No newline at end of file +}