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:
parent
e2d71c0a0d
commit
0ce182723b
@ -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);
|
||||
|
@ -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)
|
||||
|
@ -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.
|
||||
*
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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(),
|
||||
|
@ -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
|
||||
|
@ -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) {
|
||||
|
@ -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")
|
||||
|
@ -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);
|
||||
|
@ -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")) {
|
||||
|
@ -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();
|
||||
|
@ -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
|
||||
*/
|
||||
|
@ -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]:
|
||||
* ... \u0001, \u0002, \u0007, a, b, \n, ...
|
||||
|
Loading…
x
Reference in New Issue
Block a user