Skip to content

Commit 38a0e17

Browse files
committed
Prefer query(Class) method in javadoc example
See gh-26594
1 parent b9bbfb7 commit 38a0e17

File tree

1 file changed

+1
-1
lines changed
  • spring-jdbc/src/main/java/org/springframework/jdbc/core/simple

1 file changed

+1
-1
lines changed

Diff for: spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/JdbcClient.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
* <pre class="code">
4747
* Optional&lt;Integer&gt; value = client.sql("SELECT AGE FROM CUSTOMER WHERE ID = :id")
4848
* .param("id", 3)
49-
* .query((rs, rowNum) -> rs.getInt(1))
49+
* .query(Integer.class)
5050
* .optional();
5151
* </pre>
5252
*

0 commit comments

Comments
 (0)