8294321: Fix typos in files under test/jdk/java, test/jdk/jdk, test/jdk/jni

Co-authored-by: Michael Ernst <mernst@openjdk.org>
Reviewed-by: alanb, lancea, dfuchs
This commit is contained in:
Jaikiran Pai 2022-11-30 00:37:31 +00:00
parent e2d71c0a0d
commit 0ce182723b
19 changed files with 20 additions and 20 deletions

View File

@ -284,7 +284,7 @@ public class HyperbolicTests {
// For values of x larger than 22, the e^(-x) term is
// insignificant to the floating-point result. Util exp(x)
// overflows around 709.8, sinh(x) ~= exp(x)/2; will will test
// overflows around 709.8, sinh(x) ~= exp(x)/2; will test
// 10000 values in this range.
long trans22 = Double.doubleToLongBits(22.0);
@ -625,7 +625,7 @@ public class HyperbolicTests {
// For values of x larger than 22, the e^(-x) term is
// insignificant to the floating-point result. Util exp(x)
// overflows around 709.8, cosh(x) ~= exp(x)/2; will will test
// overflows around 709.8, cosh(x) ~= exp(x)/2; will test
// 10000 values in this range.
long trans22 = Double.doubleToLongBits(22.0);

View File

@ -22,7 +22,7 @@
*/
/**
* Class to have an indirectly missing annotation applied for for
* Class to have an indirectly missing annotation applied for
* running MisssingTest.
*/
@MissingWrapper(@Missing)

View File

@ -52,7 +52,7 @@ public class DivideTests {
* decimal expansion. Putting aside overflow and
* underflow considerations, the existance of an exact
* result only depends on the ratio of the intVal's of the
* dividend (i.e. this) and and divisor since the scales
* dividend (i.e. this) and divisor since the scales
* of the argument just affect where the decimal point
* lies.
*

View File

@ -252,7 +252,7 @@ public class Timeouts {
int b = s2.getInputStream().read();
assertTrue(b == 99);
// schedule s2 to be be closed
// schedule s2 to be closed
scheduleClose(s2, 3000);
// write a lot so that write blocks

View File

@ -72,7 +72,7 @@ public class DisconnectAfterEOF {
}
if (n <= 0) {
if (inBody) {
System.err.println("ERROR: Client closed before before " +
System.err.println("ERROR: Client closed before " +
"entire request received.");
}
return;

View File

@ -39,7 +39,7 @@ public class TestServers {
private TestServers() { }
/**
* An abstract server identifies a server which listens on a port on on a
* An abstract server identifies a server which listens on a port on a
* given machine.
*/
static abstract class AbstractServer {

View File

@ -56,7 +56,7 @@ import java.util.zip.Checksum;
/**
* Invokes RMIClassLoader.loadProxyClass() to load a proxy class with
* multiple interfaces using using RMI class unmarshalling. Test is
* multiple interfaces using RMI class unmarshalling. Test is
* composed of cases which each unmarshal a proxy class in a
* different environment. All of the cases create needed class
* loaders, load appropriate interfaces, create a proxy class that

View File

@ -442,7 +442,7 @@ public class SimpleOCSPServer {
}
/**
* Check the status database for revocation information one one or more
* Check the status database for revocation information on one or more
* certificates.
*
* @param reqList the list of {@code LocalSingleRequest} objects taken

View File

@ -325,7 +325,7 @@ public class DriverManagerTests {
}
/**
* Create a PrintWriter and use to to send output via DriverManager.println
* Create a PrintWriter and use it to send output via DriverManager.println
* Validate that if you disable the writer, the output sent is not present
*/
@Test

View File

@ -96,7 +96,7 @@ public class ConcurrentLoadAndStoreXML {
task[i] = pool.submit(basher[i]);
}
// give them time to interfere with each each
// give them time to interfere with each other
Thread.sleep(2000);
done = true;

View File

@ -300,7 +300,7 @@ public class SimpleUpdateConfigurationTest {
storePropertyToFile("config1", props);
// we didn't call updateConfiguration, so just changing the
// content of the file should have had no no effect yet.
// content of the file should have had no effect yet.
assertEquals("FINER", manager.getProperty("com.foo.level"),
"com.foo.level set to FINER by updateConfiguration");
assertEquals(Level.FINER, logger.getLevel(),

View File

@ -3113,7 +3113,7 @@ public class RegExTest {
/**
* Checks the handling of some escape sequences that the Pattern
* class should process instead of the java compiler. These are
* not in the file because the escapes should be be processed
* not in the file because the escapes should be processed
* by the Pattern class when the regex is compiled.
*/
@Test

View File

@ -122,7 +122,7 @@ public class ToolProviderTest {
// system property
System.getProperty("java.home");
if (haveSecurityManager) {
throw new Error("exception exception not thrown");
throw new Error("exception not thrown");
}
} catch (SecurityException e) {
if (!haveSecurityManager) {

View File

@ -257,7 +257,7 @@ public class JImageReadTest {
/**
* Return true if the name is one of the meta-data names
* @param name a name
* @return return true if starts with either /packages or /modules
* @return true if starts with either /packages or /modules
*/
static boolean isMetaName(String name) {
return name.startsWith("/modules")

View File

@ -141,7 +141,7 @@ public class ClassLoaderValueTest {
} catch (IllegalStateException e) {
// expected
}
// nested remove for for same key and any value (even null)
// nested remove for same key and any value (even null)
// should return false
assertEquals(clv_k.remove(_ld, null), false);
assertEquals(clv_k.remove(_ld, v1), false);

View File

@ -52,7 +52,7 @@ import static java.nio.file.StandardWatchEventKinds.ENTRY_CREATE;
public class Basic {
public static void main(String[] args) throws Exception {
// Test: zip should should be returned in provider list
// Test: zip should be returned in provider list
boolean found = false;
for (FileSystemProvider provider: FileSystemProvider.installedProviders()) {
if (provider.getScheme().equalsIgnoreCase("jar")) {

View File

@ -172,7 +172,7 @@ public:
}
// call a method returning an object checking for exceptions and
// the the return value is not null.
// the return value is not null.
jobject callReturnNotNull(jobject arg) {
jobject robj = env->CallStaticObjectMethod(c, m, arg);
checkException();

View File

@ -25,7 +25,7 @@
* @test
* @bug 8132475
* @summary Check that jlink creates executables in the bin directory
* that are are executable by all users
* that are executable by all users
* @run main CheckExecutable
* @author Volker Simonis
*/

View File

@ -57,7 +57,7 @@ import java.util.Optional;
* ["first", "second", "incorrect", "u\nprintable"]
* ^^^^^^^^^^^^
* </pre>
* <p> two char arrays arrays: </p>
* <p> two char arrays: </p>
* <pre>
* Arrays differ starting from [index: 7]:
* ... &#92;u0001, &#92;u0002, &#92;u0007, a, b, \n, ...