From 417d01ea63261afb4fb29b4d11de799f2c0846d7 Mon Sep 17 00:00:00 2001 From: Jaikiran Pai Date: Tue, 3 Jan 2023 01:58:49 +0000 Subject: [PATCH] 8299441: Fix typos in some test files under core-libs component Co-authored-by: Michael Ernst Reviewed-by: lancea --- test/jdk/javax/script/GetInterfaceTest.java | 2 +- .../test/rowset/cachedrowset/CommonCachedRowSetTests.java | 4 ++-- .../sql/testng/test/rowset/serial/SerialDataLinkTests.java | 2 +- test/micro/org/openjdk/bench/java/lang/ArrayFiddle.java | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/jdk/javax/script/GetInterfaceTest.java b/test/jdk/javax/script/GetInterfaceTest.java index d379d2d10b7..2889f1448c8 100644 --- a/test/jdk/javax/script/GetInterfaceTest.java +++ b/test/jdk/javax/script/GetInterfaceTest.java @@ -35,7 +35,7 @@ public class GetInterfaceTest { ScriptEngine engine = manager.getEngineByName("nashorn"); if (engine == null) { - System.out.println("Warning: No js engine engine found; test vacuously passes."); + System.out.println("Warning: No js engine found; test vacuously passes."); return; } diff --git a/test/jdk/javax/sql/testng/test/rowset/cachedrowset/CommonCachedRowSetTests.java b/test/jdk/javax/sql/testng/test/rowset/cachedrowset/CommonCachedRowSetTests.java index 7b04443e23f..642c03c9a45 100644 --- a/test/jdk/javax/sql/testng/test/rowset/cachedrowset/CommonCachedRowSetTests.java +++ b/test/jdk/javax/sql/testng/test/rowset/cachedrowset/CommonCachedRowSetTests.java @@ -1401,7 +1401,7 @@ public abstract class CommonCachedRowSetTests extends CommonRowSetTests { rs.updateString(2, coffee); rs.updateInt(5, sales); // MetaData should match - try ( // Get the original original RowSet and validate that the changes + try ( // Get the original RowSet and validate that the changes // are only made to the current, not the original ResultSet rs1 = rs.getOriginal()) { // MetaData should match @@ -1444,7 +1444,7 @@ public abstract class CommonCachedRowSetTests extends CommonRowSetTests { rs.updateString(2, coffee); rs.updateInt(5, sales); // MetaData should match - try ( // Get the original original row and validate that the changes + try ( // Get the original row and validate that the changes // are only made to the current, not the original ResultSet rs1 = rs.getOriginalRow()) { // MetaData should match diff --git a/test/jdk/javax/sql/testng/test/rowset/serial/SerialDataLinkTests.java b/test/jdk/javax/sql/testng/test/rowset/serial/SerialDataLinkTests.java index 8e86d4a8f3d..0c7f19e85b1 100644 --- a/test/jdk/javax/sql/testng/test/rowset/serial/SerialDataLinkTests.java +++ b/test/jdk/javax/sql/testng/test/rowset/serial/SerialDataLinkTests.java @@ -99,7 +99,7 @@ public class SerialDataLinkTests extends BaseTest { /** * Validate that a SerialDatalink that is serialized & deserialized is not equal - * to to a SerialDatalink created using a different URL + * to a SerialDatalink created using a different URL */ @Test public void test05() throws Exception { diff --git a/test/micro/org/openjdk/bench/java/lang/ArrayFiddle.java b/test/micro/org/openjdk/bench/java/lang/ArrayFiddle.java index bade9493dc3..b95fc2788c6 100644 --- a/test/micro/org/openjdk/bench/java/lang/ArrayFiddle.java +++ b/test/micro/org/openjdk/bench/java/lang/ArrayFiddle.java @@ -45,7 +45,7 @@ import java.util.concurrent.TimeUnit; * simple_copyLoop is surprisingly 5x slower. The array copying intrinsics * are very effective and a naive loop does not get optimized the same way. * OTOH there is no intrinsic for Arrays.fill but the naive array zeroing loop - * *does* get optimized to something a little faster than than arraycopy. + * *does* get optimized to something a little faster than arraycopy. * * System.arraycopy and Arrays.fill have such outstanding performance that * one should use them to replace handwritten loops whenever possible.