Skip to content

Commit

Permalink
8304990: unnecessary dash in @param gives double-dash in docs
Browse files Browse the repository at this point in the history
Reviewed-by: bpb, naoto
  • Loading branch information
Lance Andersen committed Mar 29, 2023
1 parent e56bcb0 commit 2fa0933
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/java.sql/share/classes/java/sql/Connection.java
Expand Up @@ -1108,12 +1108,11 @@ PreparedStatement prepareStatement(String sql, String columnNames[])
* 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}
Expand Down

1 comment on commit 2fa0933

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.