A DESCRIPTION OF THE PROBLEM :
In both the synopsis and the detailed description of the toPath() method of class java.io.File it reads:
"Returns a java.nio.file.Path object constructed from the this abstract path."
Delete "the".
The same applies to the documentation of java 8.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Returns a java.nio.file.Path object constructed from this abstract path.
ACTUAL -
Returns a java.nio.file.Path object constructed from the this abstract path.
URL OF FAULTY DOCUMENTATION :
https://docs.oracle.com/javase/9/docs/api/java/io/File.html
In both the synopsis and the detailed description of the toPath() method of class java.io.File it reads:
"Returns a java.nio.file.Path object constructed from the this abstract path."
Delete "the".
The same applies to the documentation of java 8.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Returns a java.nio.file.Path object constructed from this abstract path.
ACTUAL -
Returns a java.nio.file.Path object constructed from the this abstract path.
URL OF FAULTY DOCUMENTATION :
https://docs.oracle.com/javase/9/docs/api/java/io/File.html
- duplicates
-
JDK-8193861 Typos in API documentation of File.toPath() and InetSocketAddress.getAddress()
-
- Closed
-