7068856: (file) Typo in Files.isSameFile() javadoc
Mike Duigou
mike.duigou at oracle.com
Wed Jan 11 08:11:14 PST 2012
Both look good.
Mike
On Jan 11 2012, at 04:10 , Alan Bateman wrote:
>
> I need a reviewer for two small typos in the javadoc:
>
> http://bugs.sun.com/view_bug.do?bug_id=7068856
> http://bugs.sun.com/view_bug.do?bug_id=7099208
>
> The proposed patch is 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
> @@ -1431,7 +1431,7 @@ public final class Files {
> * <li>It is <i>transitive</i>: for three {@code Paths}
> * {@code f}, {@code g}, and {@code h}, if {@code isSameFile(f,g)} returns
> * {@code true} and {@code isSameFile(g,h)} returns {@code true}, then
> - * {@code isSameFile(g,h)} will return return {@code true}.
> + * {@code isSameFile(f,h)} will return return {@code true}.
> * </ul>
> *
> * @param path
> 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
> @@ -72,7 +72,7 @@ import java.util.Iterator;
> * directory and is UTF-8 encoded.
> * <pre>
> * Path path = FileSystems.getDefault().getPath("logs", "access.log");
> - * BufferReader reader = Files.newBufferedReader(path, StandardCharsets.UTF_8);
> + * BufferedReader reader = Files.newBufferedReader(path, StandardCharsets.UTF_8);
> * </pre>
> *
> * <a name="interop"><h4>Interoperability</h4></a>
>
More information about the nio-dev
mailing list