8279990: (fs) Awkward verbiage in description of Files.createTempFile(Path,String,String,FileAttribute)

Reviewed-by: lancea
This commit is contained in:
Brian Burkhalter 2022-01-14 17:47:35 +00:00
parent d9dd485b95
commit fb8fdc0fbf

View file

@ -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.
*