8287889: (fs) Files.copy description of REPLACE_EXISTING is hard to read

Reviewed-by: alanb
This commit is contained in:
Brian Burkhalter 2022-06-14 17:59:06 +00:00
parent 8cd87e731b
commit 5a8e1e43a4

View file

@ -1219,10 +1219,9 @@ public final class Files {
* <tbody> * <tbody>
* <tr> * <tr>
* <th scope="row"> {@link StandardCopyOption#REPLACE_EXISTING REPLACE_EXISTING} </th> * <th scope="row"> {@link StandardCopyOption#REPLACE_EXISTING REPLACE_EXISTING} </th>
* <td> If the target file exists, then the target file is replaced if it * <td> Replace an existing file. A non-empty directory cannot be
* is not a non-empty directory. If the target file exists and is a * replaced. If the target file exists and is a symbolic link, then the
* symbolic link, then the symbolic link itself, not the target of * symbolic link itself, not the target of the link, is replaced. </td>
* the link, is replaced. </td>
* </tr> * </tr>
* <tr> * <tr>
* <th scope="row"> {@link StandardCopyOption#COPY_ATTRIBUTES COPY_ATTRIBUTES} </th> * <th scope="row"> {@link StandardCopyOption#COPY_ATTRIBUTES COPY_ATTRIBUTES} </th>
@ -1342,10 +1341,9 @@ public final class Files {
* <tbody> * <tbody>
* <tr> * <tr>
* <th scope="row"> {@link StandardCopyOption#REPLACE_EXISTING REPLACE_EXISTING} </th> * <th scope="row"> {@link StandardCopyOption#REPLACE_EXISTING REPLACE_EXISTING} </th>
* <td> If the target file exists, then the target file is replaced if it * <td> Replace an existing file. A non-empty directory cannot be
* is not a non-empty directory. If the target file exists and is a * replaced. If the target file exists and is a symbolic link, then the
* symbolic link, then the symbolic link itself, not the target of * symbolic link itself, not the target of the link, is replaced. </td>
* the link, is replaced. </td>
* </tr> * </tr>
* <tr> * <tr>
* <th scope="row"> {@link StandardCopyOption#ATOMIC_MOVE ATOMIC_MOVE} </th> * <th scope="row"> {@link StandardCopyOption#ATOMIC_MOVE ATOMIC_MOVE} </th>