Skip to content

Commit

Permalink
8294321: Fix typos in files under test/jdk/java, test/jdk/jdk, test/j…
Browse files Browse the repository at this point in the history
…dk/jni

Co-authored-by: Michael Ernst <mernst@openjdk.org>
Reviewed-by: alanb, lancea, dfuchs
  • Loading branch information
jaikiran and Michael Ernst committed Nov 30, 2022
1 parent e2d71c0 commit 0ce1827
Show file tree
Hide file tree
Showing 19 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions test/jdk/java/lang/Math/HyperbolicTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ static int testSinh() {

// 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);
Expand Down Expand Up @@ -625,7 +625,7 @@ static int testCosh() {

// 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);
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/java/lang/annotation/Missing/B.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/java/math/BigDecimal/DivideTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ BigDecimal anotherDivide(BigDecimal dividend, BigDecimal divisor) {
* 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.
*
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/java/net/Socket/Timeouts.java
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public void testTimedWrite2() throws IOException {
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
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/java/net/URLConnection/DisconnectAfterEOF.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void run() {
}
if (n <= 0) {
if (inBody) {
System.err.println("ERROR: Client closed before before " +
System.err.println("ERROR: Client closed before " +
"entire request received.");
}
return;
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/java/nio/channels/TestServers.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

/**
* 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
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/java/security/testlibrary/SimpleOCSPServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ public void updateStatusDb(Map<BigInteger, CertStatusInfo> newEntries)
}

/**
* 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
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/java/sql/testng/test/sql/DriverManagerTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ public void tests17() throws Exception {
}

/**
* 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public static void main(String[] args) throws Exception {
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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ static void testUpdateConfiguration() {
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(),
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/java/util/regex/RegExTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -3113,7 +3113,7 @@ public static void substitutionBasher2() {
/**
* 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
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/java/util/spi/ToolProviderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private void checkPrivileges() {
// 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) {
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/jdk/internal/jimage/JImageReadTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ static void test3_verifyNames() {
/**
* 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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ static void writeValidateOps(ClassLoaderValue<Integer> clv,
} 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);
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/jdk/nio/zipfs/Basic.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

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")) {
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/jni/nullCaller/CallHelper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class StaticCall : public CallHelper {
}

// 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();
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/tools/jlink/CheckExecutable.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion test/lib/jdk/test/lib/format/ArrayDiff.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
* ["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, ...
Expand Down

1 comment on commit 0ce1827

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.