changeset 56989:8e7456b980f4 records-and-sealed

rewording java.lang.Record spec
author vromero
date Thu, 15 Aug 2019 14:01:09 -0400
parents 6f214db52b77
children 82c842b0d999 10f3b9bd83b8
files src/java.base/share/classes/java/lang/Record.java
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/Record.java	Thu Aug 15 13:48:44 2019 -0400
+++ b/src/java.base/share/classes/java/lang/Record.java	Thu Aug 15 14:01:09 2019 -0400
@@ -40,7 +40,7 @@
  *
  * <p>A record class has the following mandated members: a public <em>canonical
  * constructor</em>, whose descriptor is the same as the record descriptor;
- * a private static field corresponding to each component, whose name and
+ * a private final field corresponding to each component, whose name and
  * type are the same as that of the component; a public accessor method
  * corresponding to each component, whose name and return type are the same as
  * that of the component.  If not explicitly declared in the body of the record,
@@ -84,8 +84,8 @@
      * only if the argument is an instance of the same record type as this object,
      * and each component of this record is equal to the corresponding component
      * of the argument, according to {@link Object#equals(Object)} for components
-     * whose types are reference types, and {@code ==} for components whose
-     * types are primitive types.
+     * whose types are reference types, and the primitive wrapper equality
+     * comparison for components whose types are primitive types.
      *
      * @see Object#equals(Object)
      *
@@ -130,4 +130,3 @@
     @Override
     public abstract String toString();
 }
-