Skip to content

Commit 5dbd956

Browse files
authored
Use correct ScrollPosition factory methods in reference docs.
Closes #2963
1 parent 81841f3 commit 5dbd956

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/antora/modules/ROOT/pages/repositories/scrolling.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ interface UserRepository extends Repository<User, Long> {
9090
}
9191
9292
WindowIterator<User> users = WindowIterator.of(position -> repository.findFirst10ByLastnameOrderByFirstname("Doe", position))
93-
.startingAt(KeysetScrollPosition.initial()); <1>
93+
.startingAt(ScrollPosition.keyset()); <1>
9494
----
9595
<1> Start at the very beginning and do not apply additional filtering.
9696

src/main/asciidoc/repositories-scrolling.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ interface UserRepository extends Repository<User, Long> {
9191
}
9292
9393
WindowIterator<User> users = WindowIterator.of(position -> repository.findFirst10ByLastnameOrderByFirstname("Doe", position))
94-
.startingAt(KeysetScrollPosition.initial()); <1>
94+
.startingAt(ScrollPosition.keyset()); <1>
9595
----
9696
<1> Start at the very beginning and do not apply additional filtering.
9797
====

0 commit comments

Comments
 (0)