changeset 57503:f7ab94fadd5a

8236877: Add "record" to descriptions in java.lang.{annotation, reflect} Reviewed-by: mchung, lancea, chegar
author darcy
date Fri, 10 Jan 2020 09:15:20 -0800
parents fd1fe6f7daab
children 88c82777e0af
files src/java.base/share/classes/java/lang/Class.java src/java.base/share/classes/java/lang/annotation/ElementType.java
diffstat 2 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/Class.java	Fri Jan 10 16:20:31 2020 +0000
+++ b/src/java.base/share/classes/java/lang/Class.java	Fri Jan 10 09:15:20 2020 -0800
@@ -89,16 +89,15 @@
 import sun.reflect.misc.ReflectUtil;
 
 /**
- * Instances of the class {@code Class} represent classes and interfaces
- * in a running Java application. An enum type is a kind of class and an
- * annotation type is a kind of interface. Every array also
- * belongs to a class that is reflected as a {@code Class} object
- * that is shared by all arrays with the same element type and number
- * of dimensions.  The primitive Java types ({@code boolean},
- * {@code byte}, {@code char}, {@code short},
- * {@code int}, {@code long}, {@code float}, and
- * {@code double}), and the keyword {@code void} are also
- * represented as {@code Class} objects.
+ * Instances of the class {@code Class} represent classes and
+ * interfaces in a running Java application. An enum type and a record
+ * type are kinds of class; an annotation type is a kind of
+ * interface. Every array also belongs to a class that is reflected as
+ * a {@code Class} object that is shared by all arrays with the same
+ * element type and number of dimensions.  The primitive Java types
+ * ({@code boolean}, {@code byte}, {@code char}, {@code short}, {@code
+ * int}, {@code long}, {@code float}, and {@code double}), and the
+ * keyword {@code void} are also represented as {@code Class} objects.
  *
  * <p> {@code Class} has no public constructor. Instead a {@code Class}
  * object is constructed automatically by the Java Virtual Machine
--- a/src/java.base/share/classes/java/lang/annotation/ElementType.java	Fri Jan 10 16:20:31 2020 +0000
+++ b/src/java.base/share/classes/java/lang/annotation/ElementType.java	Fri Jan 10 09:15:20 2020 -0800
@@ -71,7 +71,8 @@
  * @jls 4.1 The Kinds of Types and Values
  */
 public enum ElementType {
-    /** Class, interface (including annotation type), or enum declaration */
+    /** Class, interface (including annotation type), enum, or record
+     * declaration */
     TYPE,
 
     /** Field declaration (includes enum constants) */