8176542: Missing @Deprecated arguments for jdk.policytool
authorweijun
Mon, 13 Mar 2017 21:05:38 +0800
changeset 44161 c0d4e4ffb0fd
parent 44160 34a0c46c1f27
child 44162 725cbaef3403
8176542: Missing @Deprecated arguments for jdk.policytool Reviewed-by: mullan
jdk/src/jdk.policytool/share/classes/module-info.java
jdk/src/jdk.policytool/share/classes/sun/security/tools/policytool/PolicyTool.java
--- a/jdk/src/jdk.policytool/share/classes/module-info.java	Mon Mar 13 14:02:16 2017 +0100
+++ b/jdk/src/jdk.policytool/share/classes/module-info.java	Mon Mar 13 21:05:38 2017 +0800
@@ -27,10 +27,9 @@
  * GUI tool for managing policy files.
  *
  * @since 9
- * @deprecated The policytool tool has been deprecated and
- * is planned to be removed in a future release.
+ * @deprecated
  */
-@Deprecated
+@Deprecated(since="9", forRemoval=true)
 module jdk.policytool {
     requires java.desktop;
     requires java.logging;
--- a/jdk/src/jdk.policytool/share/classes/sun/security/tools/policytool/PolicyTool.java	Mon Mar 13 14:02:16 2017 +0100
+++ b/jdk/src/jdk.policytool/share/classes/sun/security/tools/policytool/PolicyTool.java	Mon Mar 13 21:05:38 2017 +0800
@@ -65,11 +65,12 @@
  *
  * @see java.security.Policy
  * @since   1.2
- * @deprecated The policytool tool has been deprecated and
- * is planned to be removed in a future release.
+ * @deprecated {@code policytool} has been deprecated for removal because it
+ * is rarely used, and it provides little value over editing policy
+ * files using a text editor.
  */
 
-@Deprecated
+@Deprecated(since="9", forRemoval=true)
 public class PolicyTool {
 
     // for i18n