8226808: PreparedStatement javadoc typo
authorlancea
Fri, 26 Jul 2019 15:06:22 -0400
changeset 57548 1f05f7952295
parent 57545 550a1a6ca596
child 57549 bfe9696bf57f
8226808: PreparedStatement javadoc typo Reviewed-by: bpb, joehw
src/java.sql/share/classes/java/sql/PreparedStatement.java
--- 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