OpenJDK / jdk / jdk
changeset 55823:1f05f7952295
8226808: PreparedStatement javadoc typo
Reviewed-by: bpb, joehw
author | lancea |
---|---|
date | Fri, 26 Jul 2019 15:06:22 -0400 |
parents | 550a1a6ca596 |
children | bfe9696bf57f |
files | src/java.sql/share/classes/java/sql/PreparedStatement.java |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/java.sql/share/classes/java/sql/PreparedStatement.java Fri Jul 26 17:15:17 2019 +0000 +++ b/src/java.sql/share/classes/java/sql/PreparedStatement.java Fri Jul 26 15:06:22 2019 -0400 @@ -47,12 +47,13 @@ * <P> * In the following example of setting a parameter, <code>con</code> represents * an active connection: - * <PRE> + * <pre>{@code + * BigDecimal sal = new BigDecimal("153833.00"); * PreparedStatement pstmt = con.prepareStatement("UPDATE EMPLOYEES * SET SALARY = ? WHERE ID = ?"); - * pstmt.setBigDecimal(1, 153833.00) - * pstmt.setInt(2, 110592) - * </PRE> + * pstmt.setBigDecimal(1, sal); + * pstmt.setInt(2, 110592); + * }</pre> * * @see Connection#prepareStatement * @see ResultSet