From 2fa09333ef0ac2dc1e44292f8d45d4571cb22cca Mon Sep 17 00:00:00 2001 From: Lance Andersen Date: Wed, 29 Mar 2023 14:52:11 +0000 Subject: [PATCH] 8304990: unnecessary dash in @param gives double-dash in docs Reviewed-by: bpb, naoto --- src/java.sql/share/classes/java/sql/Connection.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/java.sql/share/classes/java/sql/Connection.java b/src/java.sql/share/classes/java/sql/Connection.java index 0a5429d302f..f2d1d48f6d3 100644 --- a/src/java.sql/share/classes/java/sql/Connection.java +++ b/src/java.sql/share/classes/java/sql/Connection.java @@ -1108,12 +1108,11 @@ public interface Connection extends Wrapper, AutoCloseable { * The query submitted by the driver to validate the connection shall be * executed in the context of the current transaction. * - * @param timeout - The time in seconds to wait for the database operation - * used to validate the connection to complete. If - * the timeout period expires before the operation - * completes, this method returns false. A value of - * 0 indicates a timeout is not applied to the - * database operation. + * @param timeout The time in seconds to wait for the database operation + * used to validate the connection to complete. If the + * timeout period expires before the operationcompletes, + * this method returns false. A value of 0 indicates a + * timeout is not applied to the database operation. * * @return true if the connection is valid, false otherwise * @throws SQLException if the value supplied for {@code timeout}