diff --git a/src/java.xml/share/legal/xhtml11.md b/src/java.xml/share/legal/xhtml11.md
index b447a5ac9e4..eafd55a9c16 100644
--- a/src/java.xml/share/legal/xhtml11.md
+++ b/src/java.xml/share/legal/xhtml11.md
@@ -47,7 +47,7 @@ The notice is:
"Copyright © 2023 W3C®. This software or document includes material copied from
or derived from [title and URI of the W3C document]."
-Disclaimers §anchor
+Disclaimers
THIS DOCUMENT IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS
OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF
diff --git a/src/java.xml/share/legal/xmlxsd.md b/src/java.xml/share/legal/xmlxsd.md
index 163e26e9f77..b752b10da29 100644
--- a/src/java.xml/share/legal/xmlxsd.md
+++ b/src/java.xml/share/legal/xmlxsd.md
@@ -26,7 +26,7 @@ modifications:
[$year-of-document] World Wide Web Consortium.
https://www.w3.org/copyright/software-license-2023/"
-Disclaimers §anchor
+Disclaimers
THIS WORK IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR
WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF
diff --git a/test/jdk/java/awt/geom/Path2D/GetBounds2DPrecisionTest.java b/test/jdk/java/awt/geom/Path2D/GetBounds2DPrecisionTest.java
index 71b22399cb1..f97c98a6b25 100644
--- a/test/jdk/java/awt/geom/Path2D/GetBounds2DPrecisionTest.java
+++ b/test/jdk/java/awt/geom/Path2D/GetBounds2DPrecisionTest.java
@@ -189,7 +189,7 @@ public class GetBounds2DPrecisionTest {
int DIGIT_COUNT = 40;
String str = decimal.toPlainString();
if (str.length() >= DIGIT_COUNT) {
- str = str.substring(0,DIGIT_COUNT-1)+"…";
+ str = str.substring(0,DIGIT_COUNT-1)+"...";
}
while(str.length() < DIGIT_COUNT) {
str = str + " ";
@@ -260,4 +260,4 @@ public class GetBounds2DPrecisionTest {
}
return roots;
}
-}
\ No newline at end of file
+}
diff --git a/test/jdk/java/awt/im/PinyinIMCapsTest.java b/test/jdk/java/awt/im/PinyinIMCapsTest.java
index 4dca27d9922..707f56c6651 100644
--- a/test/jdk/java/awt/im/PinyinIMCapsTest.java
+++ b/test/jdk/java/awt/im/PinyinIMCapsTest.java
@@ -47,7 +47,7 @@ public class PinyinIMCapsTest {
Test settings:
Go to "System Preferences -> Keyboard -> Input Sources" and
- add "Pinyin – Traditional" or "Pinyin – Simplified" IM from Chinese language group.
+ add "Pinyin - Traditional" or "Pinyin - Simplified" IM from Chinese language group.
Set current IM to "Pinyin".
1. Set focus to the text field shown below and press Caps Lock key on the keyboard.
@@ -79,4 +79,3 @@ public class PinyinIMCapsTest {
return panel;
}
}
-
diff --git a/test/jdk/java/awt/im/PinyinIMCommaTest.java b/test/jdk/java/awt/im/PinyinIMCommaTest.java
index 273403e7d68..4fccd47ea7c 100644
--- a/test/jdk/java/awt/im/PinyinIMCommaTest.java
+++ b/test/jdk/java/awt/im/PinyinIMCommaTest.java
@@ -44,7 +44,7 @@ public class PinyinIMCommaTest {
Test settings:
Go to "System Preferences -> Keyboard -> Input Sources" and
- add "Pinyin – Traditional" or "Pinyin – Simplified" IM from Chinese language group.
+ add "Pinyin - Traditional" or "Pinyin - Simplified" IM from Chinese language group.
Set current IM to "Pinyin".
1. Set focus to the text field below and press "comma" character
diff --git a/test/jdk/java/awt/im/PinyinIMFullstopTest.java b/test/jdk/java/awt/im/PinyinIMFullstopTest.java
index 82d66f950f9..2c8da202544 100644
--- a/test/jdk/java/awt/im/PinyinIMFullstopTest.java
+++ b/test/jdk/java/awt/im/PinyinIMFullstopTest.java
@@ -43,7 +43,7 @@ public class PinyinIMFullstopTest {
Test settings:
Go to "System Preferences -> Keyboard -> Input Sources" and
- add "Pinyin – Traditional" or "Pinyin – Simplified" IM from Chinese language group.
+ add "Pinyin - Traditional" or "Pinyin - Simplified" IM from Chinese language group.
Set current IM to "Pinyin".
1. Set focus to the text area below and press "dot" character
diff --git a/test/jdk/java/util/Currency/ValidateISO4217.java b/test/jdk/java/util/Currency/ValidateISO4217.java
index 34635f5c53a..743db3beeab 100644
--- a/test/jdk/java/util/Currency/ValidateISO4217.java
+++ b/test/jdk/java/util/Currency/ValidateISO4217.java
@@ -89,7 +89,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* This class tests the latest ISO 4217 data and Java's currency data which is
* based on ISO 4217. The golden-data file, 'ISO4217-list-one.txt', based on the
- * “List one: Currency, fund and precious metal codes” has the following
+ * "List one: Currency, fund and precious metal codes" has the following
* format: \t\t\t[\t\t\t\t]
* The Cutover Date is given in SimpleDateFormat's 'yyyy-MM-dd-HH-mm-ss' format in the GMT time zone.
*/
diff --git a/test/jdk/java/util/stream/GathererTest.java b/test/jdk/java/util/stream/GathererTest.java
index ca22fc21236..d85f466496f 100644
--- a/test/jdk/java/util/stream/GathererTest.java
+++ b/test/jdk/java/util/stream/GathererTest.java
@@ -106,11 +106,11 @@ public class GathererTest {
}
final Gatherer addOne = Gatherer.of(
- Gatherer.Integrator.ofGreedy((vöid, element, downstream) -> downstream.push(element + 1))
+ Gatherer.Integrator.ofGreedy((void_state, element, downstream) -> downstream.push(element + 1))
);
final Gatherer timesTwo = Gatherer.of(
- Gatherer.Integrator.ofGreedy((vöid, element, downstream) -> downstream.push(element * 2))
+ Gatherer.Integrator.ofGreedy((void_state, element, downstream) -> downstream.push(element * 2))
);
@ParameterizedTest