Skip to content

Commit

Permalink
8351294: (fs) Minor verbiage correction for Files.createTemp{Director…
Browse files Browse the repository at this point in the history
…y,File}

Reviewed-by: alanb
  • Loading branch information
Brian Burkhalter committed Mar 6, 2025
1 parent 8f8a879 commit 93f2260
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/java.base/share/classes/java/nio/file/Files.java
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ private static void createAndCheckIsDirectory(Path dir,
* is identified by its {@link FileAttribute#name name}. If more than one
* attribute of the same name is included in the array then all but the last
* occurrence is ignored. When no file attributes are specified, then the
* resulting file may have more restrictive access permissions to files
* resulting file may have more restrictive access permissions than files
* created by the {@link java.io.File#createTempFile(String,String,File)}
* method.
*
Expand Down Expand Up @@ -862,7 +862,7 @@ public static Path createTempFile(String prefix,
* than one attribute of the same name is included in the array then all but
* the last occurrence is ignored. When no file attributes are specified,
* then the resulting directory may have more restrictive access
* permissions to directories created by the
* permissions than directories created by the
* {@linkplain Files#createDirectory(Path, FileAttribute<?>...)} method.
*
* @param dir
Expand Down

0 comments on commit 93f2260

Please sign in to comment.