A DESCRIPTION OF THE PROBLEM :
The throws declaration states "Throws SQLException - if the value supplied for timeout is less then 0". The word "then" should be replaced with "than" because "than" is the word to use in comparisons.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
if the value supplied for timeout is less than 0
ACTUAL -
if the value supplied for timeout is less then 0
URL OF FAULTY DOCUMENTATION :
https://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html#isValid-int-
The throws declaration states "Throws SQLException - if the value supplied for timeout is less then 0". The word "then" should be replaced with "than" because "than" is the word to use in comparisons.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
if the value supplied for timeout is less than 0
ACTUAL -
if the value supplied for timeout is less then 0
URL OF FAULTY DOCUMENTATION :
https://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html#isValid-int-
- duplicates
-
JDK-8066261 Typo in isValid(int timeout) API in java.sql.Connection
-
- Closed
-