mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8214248: (fs) Files:mismatch spec clarifications
Reviewed-by: alanb
This commit is contained in:
parent
ce1ded1a4f
commit
2eae13c669
1 changed files with 7 additions and 2 deletions
|
@ -1531,7 +1531,8 @@ public final class Files {
|
||||||
* @throws SecurityException
|
* @throws SecurityException
|
||||||
* In the case of the default provider, and a security manager is
|
* In the case of the default provider, and a security manager is
|
||||||
* installed, the {@link SecurityManager#checkRead(String) checkRead}
|
* installed, the {@link SecurityManager#checkRead(String) checkRead}
|
||||||
* method is invoked to check read access to both files.
|
* method is invoked to check read access to both files when the
|
||||||
|
* two paths are not equal
|
||||||
*
|
*
|
||||||
* @see java.nio.file.attribute.BasicFileAttributes#fileKey
|
* @see java.nio.file.attribute.BasicFileAttributes#fileKey
|
||||||
*/
|
*/
|
||||||
|
@ -1571,6 +1572,9 @@ public final class Files {
|
||||||
* and {@code g}, {@code mismatch(f,g)} will return the same value as
|
* and {@code g}, {@code mismatch(f,g)} will return the same value as
|
||||||
* {@code mismatch(g,f)}).
|
* {@code mismatch(g,f)}).
|
||||||
*
|
*
|
||||||
|
* <p> If both {@code Path} objects are equal, then this method returns
|
||||||
|
* {@code true} without checking if the file exists.
|
||||||
|
*
|
||||||
* @param path
|
* @param path
|
||||||
* the path to the first file
|
* the path to the first file
|
||||||
* @param path2
|
* @param path2
|
||||||
|
@ -1583,7 +1587,8 @@ public final class Files {
|
||||||
* @throws SecurityException
|
* @throws SecurityException
|
||||||
* In the case of the default provider, and a security manager is
|
* In the case of the default provider, and a security manager is
|
||||||
* installed, the {@link SecurityManager#checkRead(String) checkRead}
|
* installed, the {@link SecurityManager#checkRead(String) checkRead}
|
||||||
* method is invoked to check read access to both files.
|
* method is invoked to check read access to both files when the
|
||||||
|
* two paths are not equal
|
||||||
*
|
*
|
||||||
* @since 12
|
* @since 12
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue