OpenJDK / amber / amber
changeset 56990:82c842b0d999 amber-demo-II
Automatic merge with records-and-sealed
author | mcimadamore |
---|---|
date | Thu, 15 Aug 2019 18:05:41 +0000 |
parents | 416256f30eb9 8e7456b980f4 |
children | 64208d25926f |
files | |
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 17:55:56 2019 +0000 +++ b/src/java.base/share/classes/java/lang/Record.java Thu Aug 15 18:05:41 2019 +0000 @@ -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(); } -