changeset 58314:92ee7d6cfbbd records-and-sealed

tweak text for variations of record .equals method
author jjg
date Mon, 14 Oct 2019 11:09:46 -0700
parents df5e1c317777
children 0b7596867dd8
files src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/resources/doclets.properties test/langtools/jdk/javadoc/doclet/testRecordTypes/TestRecordTypes.java
diffstat 2 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/resources/doclets.properties	Fri Oct 11 21:50:53 2019 +0000
+++ b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/resources/doclets.properties	Mon Oct 14 11:09:46 2019 -0700
@@ -295,10 +295,10 @@
  primitive components are compared with '=='.
 
 doclet.record_equals_doc.fullbody.tail.primitive=\
- All components are compared with '=='.
+ All components in this record are compared with '=='.
 
 doclet.record_equals_doc.fullbody.tail.reference=\
- All components are compared with \
+ All components in this record are compared with \
  {@link java.util.Objects#equals(Object,Object) Objects::equals(Object,Object)}.
 
 doclet.record_equals_doc.param_name=\
--- a/test/langtools/jdk/javadoc/doclet/testRecordTypes/TestRecordTypes.java	Fri Oct 11 21:50:53 2019 +0000
+++ b/test/langtools/jdk/javadoc/doclet/testRecordTypes/TestRecordTypes.java	Mon Oct 14 11:09:46 2019 -0700
@@ -204,7 +204,7 @@
 		"Indicates whether some other object is \"equal to\" this one. "
 		+ "The objects are equal if the other object is of the same class "
 		+ "and if all the record components are equal. All components "
-		+ "are compared with '=='.",
+		+ "in this record are compared with '=='.",
 		"<span class=\"memberName\">r1</span>",
 		"Returns the value of the <a href=\"#param-r1\"><code>r1</code></a> "
 		+ "record component."
@@ -255,7 +255,7 @@
 		"Indicates whether some other object is \"equal to\" this one. "
 		+ "The objects are equal if the other object is of the same class "
 		+ "and if all the record components are equal. All components "
-		+ "are compared with '=='.",
+		+ "in this record are compared with '=='.",
 		"<span class=\"memberName\">r1</span>",
 		"Returns the value of the <a href=\"#param-r1\"><code>r1</code></a> "
 		+ "record component."
@@ -265,13 +265,13 @@
     @Test
     public void testGeneratedEqualsPrimitive(Path base) throws IOException {
 	testGeneratedEquals(base, "int a, int b", 
-             "All components are compared with '=='.");
+             "All components in this record are compared with '=='.");
     }
 
     @Test
     public void testGeneratedEqualsReference(Path base) throws IOException {
 	testGeneratedEquals(base, "Object a, Object b", 
-             "All components are compared with <code>Objects::equals(Object,Object)</code>");
+             "All components in this record are compared with <code>Objects::equals(Object,Object)</code>");
     }
 
     @Test