Documentation typo
Michael McMahon
michael.x.mcmahon at oracle.com
Mon Apr 4 07:03:05 PDT 2011
That looks fine Alan.
- Michael.
Alan Bateman wrote:
> Michael Hall wrote:
>> I believe there is a typo in the javadoc here...
>> http://download.oracle.com/javase/7/docs/api/java/nio/file/Files.html
>>
>> The typo being...
>> direcregular filetory
>>
>> Although I might not mind working with a filetory sometime, it took
>> me a little thought to be sure this wasn't some new jargon I wasn't
>> familiar with.
> Thanks Michael.
>
> I've created 7033568 to track this. I also see a typo in the
> isSymbolicLink and isDirectory methods. Can I get a reviewer for the
> attached? Thanks, Alan.
>
>
> diff --git a/src/share/classes/java/nio/file/Files.java
> b/src/share/classes/java/nio/file/Files.java
> --- a/src/share/classes/java/nio/file/Files.java
> +++ b/src/share/classes/java/nio/file/Files.java
> @@ -2067,7 +2067,7 @@ public final class Files {
> *
> * @return {@code true} if the file is a symbolic link; {@code
> false} if
> * the file does not exist, is not a symbolic link, or it
> cannot
> - * be determined if the file is symbolic link or not.
> + * be determined if the file is a symbolic link or not.
> *
> * @throws SecurityException
> * In the case of the default provider, and a security
> manager is
> @@ -2106,7 +2106,7 @@ public final class Files {
> *
> * @return {@code true} if the file is a directory; {@code false} if
> * the file does not exist, is not a directory, or it cannot
> - * be determined if the file is directory or not.
> + * be determined if the file is a directory or not.
> *
> * @throws SecurityException
> * In the case of the default provider, and a security
> manager is
> @@ -2142,8 +2142,8 @@ public final class Files {
> * options indicating how symbolic links are handled
> *
> * @return {@code true} if the file is a regular file; {@code
> false} if
> - * the file does not exist, is not a direcregular
> filetory, or it
> - * cannot be determined if the file is regular file or not.
> + * the file does not exist, is not a regular file, or it
> + * cannot be determined if the file is a regular file or
> not.
> *
> * @throws SecurityException
> * In the case of the default provider, and a security
> manager is
More information about the nio-dev
mailing list