Skip to content

Commit a3a49d8

Browse files
committed
example in paginateLazily() javadoc
1 parent dd72ab1 commit a3a49d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mug-safesql/src/main/java/com/google/mu/safesql/SafeSql.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ public <T> Optional<T> queryForOne(
978978
* """,
979979
* recent);
980980
* int pageSize = 100;
981-
* List<String> orderBy = Arrays.asList("Timestamp DESC", "CustomerId", "SaleId");
981+
* List<String> orderBy = List.of("Timestamp DESC", "CustomerId", "SaleId");
982982
* try (Connection connection = ...) {
983983
* recentSales.paginateLazily(connection, orderBy, pageSize, Sale.class)
984984
* .flatMap(List::stream) // flatten the page content

0 commit comments

Comments
 (0)