changeset 11214:83863e84201c

6481080: (ann) @Deprecated annotation has no effect on packages Reviewed-by: lancea, alanb, psandoz, abuckley
author darcy
date Thu, 08 Jan 2015 10:06:45 -0800
parents 8b619a62ca00
children 3f79145b3e1f bdb11ff7e924
files src/java.base/share/classes/java/lang/Deprecated.java
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/Deprecated.java	Thu Jan 08 20:00:14 2015 +0000
+++ b/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)