mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8236695: java.lang.Record should be declared with an explicit constructor
Reviewed-by: psandoz, chegar
This commit is contained in:
parent
3e9a17c53e
commit
af4ad226c8
1 changed files with 5 additions and 0 deletions
|
@ -90,6 +90,11 @@ package java.lang;
|
|||
@jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.RECORDS,
|
||||
essentialAPI=true)
|
||||
public abstract class Record {
|
||||
/**
|
||||
* Constructor for record classes to call.
|
||||
*/
|
||||
protected Record() {}
|
||||
|
||||
/**
|
||||
* Indicates whether some other object is "equal to" this one. In addition
|
||||
* to the general contract of {@link Object#equals(Object)},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue