6481080: (ann) @Deprecated annotation has no effect on packages
authordarcy
Thu, 08 Jan 2015 10:06:45 -0800
changeset 28305 b29f40cdd33a
parent 28304 00dea76eda49
child 28306 ed3925666bd9
child 28417 0cef041bf4fc
6481080: (ann) @Deprecated annotation has no effect on packages Reviewed-by: lancea, alanb, psandoz, abuckley
jdk/src/java.base/share/classes/java/lang/Deprecated.java
--- a/jdk/src/java.base/share/classes/java/lang/Deprecated.java	Thu Jan 08 20:00:14 2015 +0000
+++ b/jdk/src/java.base/share/classes/java/lang/Deprecated.java	Thu Jan 08 10:06:45 2015 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -34,9 +34,13 @@
  * or because a better alternative exists.  Compilers warn when a
  * deprecated program element is used or overridden in non-deprecated code.
  *
+ * <p>Use of the &#64;Deprecated annotation on a local variable
+ * declaration or on a parameter declaration or a package declaration
+ * has no effect.
+ *
  * @author  Neal Gafter
  * @since 1.5
- * @jls 9.6.3.6 @Deprecated
+ * @jls 9.6.4.6 @Deprecated
  */
 @Documented
 @Retention(RetentionPolicy.RUNTIME)