8299441: Fix typos in some test files under core-libs component

Co-authored-by: Michael Ernst <mernst@openjdk.org>
Reviewed-by: lancea
This commit is contained in:
Jaikiran Pai 2023-01-03 01:58:49 +00:00
parent 5b5552ff2a
commit 417d01ea63
4 changed files with 5 additions and 5 deletions

View file

@ -35,7 +35,7 @@ public class GetInterfaceTest {
ScriptEngine engine = manager.getEngineByName("nashorn"); ScriptEngine engine = manager.getEngineByName("nashorn");
if (engine == null) { 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; return;
} }

View file

@ -1401,7 +1401,7 @@ public abstract class CommonCachedRowSetTests extends CommonRowSetTests {
rs.updateString(2, coffee); rs.updateString(2, coffee);
rs.updateInt(5, sales); rs.updateInt(5, sales);
// MetaData should match // 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 // are only made to the current, not the original
ResultSet rs1 = rs.getOriginal()) { ResultSet rs1 = rs.getOriginal()) {
// MetaData should match // MetaData should match
@ -1444,7 +1444,7 @@ public abstract class CommonCachedRowSetTests extends CommonRowSetTests {
rs.updateString(2, coffee); rs.updateString(2, coffee);
rs.updateInt(5, sales); rs.updateInt(5, sales);
// MetaData should match // 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 // are only made to the current, not the original
ResultSet rs1 = rs.getOriginalRow()) { ResultSet rs1 = rs.getOriginalRow()) {
// MetaData should match // MetaData should match

View file

@ -99,7 +99,7 @@ public class SerialDataLinkTests extends BaseTest {
/** /**
* Validate that a SerialDatalink that is serialized & deserialized is not equal * 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 @Test
public void test05() throws Exception { public void test05() throws Exception {

View file

@ -45,7 +45,7 @@ import java.util.concurrent.TimeUnit;
* simple_copyLoop is surprisingly 5x slower. The array copying intrinsics * simple_copyLoop is surprisingly 5x slower. The array copying intrinsics
* are very effective and a naive loop does not get optimized the same way. * 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 * 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 * System.arraycopy and Arrays.fill have such outstanding performance that
* one should use them to replace handwritten loops whenever possible. * one should use them to replace handwritten loops whenever possible.