mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8279990: (fs) Awkward verbiage in description of Files.createTempFile(Path,String,String,FileAttribute)
Reviewed-by: lancea
This commit is contained in:
parent
d9dd485b95
commit
fb8fdc0fbf
1 changed files with 5 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2007, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2007, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -823,12 +823,11 @@ public final class Files {
|
|||
* names in the same manner as the {@link
|
||||
* java.io.File#createTempFile(String,String,File)} method.
|
||||
*
|
||||
* <p> As with the {@code File.createTempFile} methods, this method is only
|
||||
* part of a temporary-file facility. Where used as a <em>work files</em>,
|
||||
* the resulting file may be opened using the {@link
|
||||
* <p> The file may be opened using the {@link
|
||||
* StandardOpenOption#DELETE_ON_CLOSE DELETE_ON_CLOSE} option so that the
|
||||
* file is deleted when the appropriate {@code close} method is invoked.
|
||||
* Alternatively, a {@link Runtime#addShutdownHook shutdown-hook}, or the
|
||||
* file is deleted when the appropriate {@code close} method is invoked
|
||||
* either explicitly or via a try-with-resources statement. Alternatively,
|
||||
* a {@link Runtime#addShutdownHook shutdown-hook}, or the
|
||||
* {@link java.io.File#deleteOnExit} mechanism may be used to delete the
|
||||
* file automatically.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue