7068856: (file) Typo in Files.isSameFile() javadoc
Alan Bateman
Alan.Bateman at oracle.com
Wed Jan 11 04:10:02 PST 2012
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