8001598: Augment ElementType enum for JSR 308
authorjfranck
Wed, 07 Nov 2012 17:39:34 -0800
changeset 14419 e5214ad6600a
parent 14418 967376921f20
child 14420 5cbeeccf4a40
8001598: Augment ElementType enum for JSR 308 Reviewed-by: darcy
jdk/src/share/classes/java/lang/annotation/ElementType.java
--- a/jdk/src/share/classes/java/lang/annotation/ElementType.java	Wed Nov 07 15:08:28 2012 -0800
+++ b/jdk/src/share/classes/java/lang/annotation/ElementType.java	Wed Nov 07 17:39:34 2012 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2012, 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
@@ -46,7 +46,7 @@
     /** Method declaration */
     METHOD,
 
-    /** Parameter declaration */
+    /** Formal parameter declaration */
     PARAMETER,
 
     /** Constructor declaration */
@@ -59,5 +59,19 @@
     ANNOTATION_TYPE,
 
     /** Package declaration */
-    PACKAGE
+    PACKAGE,
+
+    /**
+     * Type parameter declaration
+     *
+     * @since 1.8
+     */
+    TYPE_PARAMETER,
+
+    /**
+     * Use of a type
+     *
+     * @since 1.8
+     */
+    TYPE_USE
 }