8025983: Typo in Javadoc of Files.isRegularFile()

Mandy Chung mandy.chung at oracle.com
Mon Oct 7 01:25:06 PDT 2013


Thumbs up.
Mandy

On 10/7/2013 1:15 AM, Alan Bateman wrote:
>
> I need a reviewer for a trivial fix to the javadoc where it reads "is 
> it" instead of "it is". The proposed patch is attached.
>
> -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
> @@ -2128,7 +2128,7 @@
>      /**
>       * Tests whether a file is a symbolic link.
>       *
> -     * <p> Where is it required to distinguish an I/O exception from 
> the case
> +     * <p> Where it is required to distinguish an I/O exception from 
> the case
>       * that the file is not a symbolic link then the file attributes 
> can be
>       * read with the {@link #readAttributes(Path,Class,LinkOption[])
>       * readAttributes} method and the file type tested with the {@link
> @@ -2164,7 +2164,7 @@
>       * of the link is read. If the option {@link 
> LinkOption#NOFOLLOW_LINKS
>       * NOFOLLOW_LINKS} is present then symbolic links are not followed.
>       *
> -     * <p> Where is it required to distinguish an I/O exception from 
> the case
> +     * <p> Where it is required to distinguish an I/O exception from 
> the case
>       * that the file is not a directory then the file attributes can be
>       * read with the {@link #readAttributes(Path,Class,LinkOption[])
>       * readAttributes} method and the file type tested with the {@link
> @@ -2201,7 +2201,7 @@
>       * of the link is read. If the option {@link 
> LinkOption#NOFOLLOW_LINKS
>       * NOFOLLOW_LINKS} is present then symbolic links are not followed.
>       *
> -     * <p> Where is it required to distinguish an I/O exception from 
> the case
> +     * <p> Where it is  required to distinguish an I/O exception from 
> the case
>       * that the file is not a regular file then the file attributes 
> can be
>       * read with the {@link #readAttributes(Path,Class,LinkOption[])
>       * readAttributes} method and the file type tested with the {@link
> diff --git a/src/share/classes/java/nio/file/Path.java 
> b/src/share/classes/java/nio/file/Path.java
> --- a/src/share/classes/java/nio/file/Path.java
> +++ b/src/share/classes/java/nio/file/Path.java
> @@ -315,7 +315,7 @@
>       * and parent directory. In such file systems all occurrences of 
> "{@code .}"
>       * are considered redundant. If a "{@code ..}" is preceded by a
>       * non-"{@code ..}" name then both names are considered redundant 
> (the
> -     * process to identify such names is repeated until is it no longer
> +     * process to identify such names is repeated until it is no longer
>       * applicable).
>       *
>       * <p> This method does not access the file system; the path may 
> not locate



More information about the nio-dev mailing list