mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-16 10:53:31 +00: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
@ -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…
x
Reference in New Issue
Block a user