8155515: Desktop.moveToTrash() javadoc issue
authorazvegint
Tue, 05 Jul 2016 19:41:47 +0300
changeset 39838 69e15ad7f51a
parent 39837 2fca95bb638e
child 39839 9c7500fae20a
8155515: Desktop.moveToTrash() javadoc issue Reviewed-by: alexsch, ssadetsky
jdk/src/java.desktop/share/classes/java/awt/Desktop.java
--- a/jdk/src/java.desktop/share/classes/java/awt/Desktop.java	Tue Jul 05 19:40:26 2016 +0300
+++ b/jdk/src/java.desktop/share/classes/java/awt/Desktop.java	Tue Jul 05 19:41:47 2016 +0300
@@ -1013,8 +1013,8 @@
      * @param file the file
      * @return returns true if successfully moved the file to the trash.
      * @throws SecurityException If a security manager exists and its
-     *         {@link SecurityManager#checkWrite(java.lang.String)} method
-     *         denies write access to the file
+     *         {@link SecurityManager#checkDelete(java.lang.String)} method
+     *         denies deletion of the file
      * @throws UnsupportedOperationException if the current platform
      *         does not support the {@link Desktop.Action#MOVE_TO_TRASH} action
      * @throws NullPointerException if {@code file} is {@code null}