From a7fd2002b5dc08c837e1b6b0fa53b6689548e442 Mon Sep 17 00:00:00 2001 From: alanb Date: Mon, 7 Oct 2013 11:48:55 +0100 Subject: [PATCH] 8025983: Typo in Javadoc of Files.isRegularFile() Reviewed-by: mchung, chegar --- src/share/classes/java/nio/file/Files.java | 6 +++--- src/share/classes/java/nio/file/Path.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/share/classes/java/nio/file/Files.java b/src/share/classes/java/nio/file/Files.java index f084040c1..174e390a6 100644 --- a/src/share/classes/java/nio/file/Files.java +++ b/src/share/classes/java/nio/file/Files.java @@ -2128,7 +2128,7 @@ public final class Files { /** * Tests whether a file is a symbolic link. * - *

Where is it required to distinguish an I/O exception from the case + *

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 @@ public final class Files { * of the link is read. If the option {@link LinkOption#NOFOLLOW_LINKS * NOFOLLOW_LINKS} is present then symbolic links are not followed. * - *

Where is it required to distinguish an I/O exception from the case + *

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 @@ public final class Files { * of the link is read. If the option {@link LinkOption#NOFOLLOW_LINKS * NOFOLLOW_LINKS} is present then symbolic links are not followed. * - *

Where is it required to distinguish an I/O exception from the case + *

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 index 39afd4d42..2bcc9aa35 100644 --- a/src/share/classes/java/nio/file/Path.java +++ b/src/share/classes/java/nio/file/Path.java @@ -315,7 +315,7 @@ public interface Path * 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). * *

This method does not access the file system; the path may not locate -- GitLab