RFR 8190502: (fs) Typo in java.nio.file.Files

Brian Burkhalter brian.burkhalter at oracle.com
Thu Nov 2 01:07:04 UTC 2017


https://bugs.openjdk.java.net/browse/JDK-8190502

The word "subsequence" is used where "subsequent" was intended. 

--- a/src/java.base/share/classes/java/nio/file/Files.java
+++ b/src/java.base/share/classes/java/nio/file/Files.java
@@ -2401,7 +2401,7 @@
      *
      * <p> Note that the result of this method is immediately outdated. If this
      * method indicates the file exists then there is no guarantee that a
-     * subsequence access will succeed. Care should be taken when using this
+     * subsequent access will succeed. Care should be taken when using this
      * method in security sensitive applications.
@@ -2458,7 +2458,7 @@
      * or not then both methods return {@code false}. As with the {@code exists}
      * method, the result of this method is immediately outdated. If this
      * method indicates the file does exist then there is no guarantee that a
-     * subsequence attempt to create the file will succeed. Care should be taken
+     * subsequent attempt to create the file will succeed. Care should be taken
      * when using this method in security sensitive applications.

Thanks,

Brian


More information about the nio-dev mailing list