changeset 58576:9fcbb7a24c61 records

records: fix cut'n'paste error in essentialAPI=true preview docs
author chegar
date Sat, 26 Oct 2019 12:14:30 +0100
parents c7cc91b57357
children b20301259ced
files src/java.base/share/classes/java/lang/Record.java src/java.base/share/classes/java/lang/annotation/ElementType.java
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/Record.java	Sat Oct 26 12:11:38 2019 +0100
+++ b/src/java.base/share/classes/java/lang/Record.java	Sat Oct 26 12:14:30 2019 +0100
@@ -29,7 +29,7 @@
  *
  *           This class is associated with <i>records</i>, a preview
  *           feature of the Java language. Programs can only use this
- *           method when preview features are enabled. Preview features
+ *           class when preview features are enabled. Preview features
  *           may be removed in a future release, or upgraded to permanent
  *           features of the Java language.}
  *
--- a/src/java.base/share/classes/java/lang/annotation/ElementType.java	Sat Oct 26 12:11:38 2019 +0100
+++ b/src/java.base/share/classes/java/lang/annotation/ElementType.java	Sat Oct 26 12:14:30 2019 +0100
@@ -121,7 +121,7 @@
      *
      *           This constant is associated with <i>records</i>, a preview
      *           feature of the Java language. Programs can only use this
-     *           method when preview features are enabled. Preview features
+     *           constant when preview features are enabled. Preview features
      *           may be removed in a future release, or upgraded to permanent
      *           features of the Java language.}
      *