From 95dc3d009d2200328e083cc46dbfe62cbf3d9be6 Mon Sep 17 00:00:00 2001 From: Alexander Zvegintsev Date: Tue, 5 Jul 2016 19:41:47 +0300 Subject: [PATCH] 8155515: Desktop.moveToTrash() javadoc issue Reviewed-by: alexsch, ssadetsky --- jdk/src/java.desktop/share/classes/java/awt/Desktop.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jdk/src/java.desktop/share/classes/java/awt/Desktop.java b/jdk/src/java.desktop/share/classes/java/awt/Desktop.java index 2cb38519ed5..f738fd78203 100644 --- a/jdk/src/java.desktop/share/classes/java/awt/Desktop.java +++ b/jdk/src/java.desktop/share/classes/java/awt/Desktop.java @@ -1013,8 +1013,8 @@ public class Desktop { * @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}