7068856: (fs) Typo in Files.isSameFile() javadoc
authoralanb
Wed, 11 Jan 2012 13:07:15 +0000
changeset 11519 4cc0b4da6c36
parent 11518 7e720dd82e9e
child 11520 1c485b79de81
7068856: (fs) Typo in Files.isSameFile() javadoc 7099208: (fs) Files.newBufferedReader has typo in javadoc Reviewed-by: forax
jdk/src/share/classes/java/nio/file/Files.java
jdk/src/share/classes/java/nio/file/Path.java
--- a/jdk/src/share/classes/java/nio/file/Files.java	Wed Jan 11 10:52:25 2012 +0000
+++ b/jdk/src/share/classes/java/nio/file/Files.java	Wed Jan 11 13:07:15 2012 +0000
@@ -1431,7 +1431,7 @@
      * <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
--- a/jdk/src/share/classes/java/nio/file/Path.java	Wed Jan 11 10:52:25 2012 +0000
+++ b/jdk/src/share/classes/java/nio/file/Path.java	Wed Jan 11 13:07:15 2012 +0000
@@ -72,7 +72,7 @@
  * 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>