Skip to content

Commit 93f2260

Browse files
author
Brian Burkhalter
committedMar 6, 2025
8351294: (fs) Minor verbiage correction for Files.createTemp{Directory,File}
Reviewed-by: alanb
1 parent 8f8a879 commit 93f2260

File tree

1 file changed

+2
-2
lines changed
  • src/java.base/share/classes/java/nio/file

1 file changed

+2
-2
lines changed
 

‎src/java.base/share/classes/java/nio/file/Files.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ private static void createAndCheckIsDirectory(Path dir,
764764
* is identified by its {@link FileAttribute#name name}. If more than one
765765
* attribute of the same name is included in the array then all but the last
766766
* occurrence is ignored. When no file attributes are specified, then the
767-
* resulting file may have more restrictive access permissions to files
767+
* resulting file may have more restrictive access permissions than files
768768
* created by the {@link java.io.File#createTempFile(String,String,File)}
769769
* method.
770770
*
@@ -862,7 +862,7 @@ public static Path createTempFile(String prefix,
862862
* than one attribute of the same name is included in the array then all but
863863
* the last occurrence is ignored. When no file attributes are specified,
864864
* then the resulting directory may have more restrictive access
865-
* permissions to directories created by the
865+
* permissions than directories created by the
866866
* {@linkplain Files#createDirectory(Path, FileAttribute<?>...)} method.
867867
*
868868
* @param dir

0 commit comments

Comments
 (0)
Please sign in to comment.