8191632: Typos in comments due to duplicating words
Reviewed-by: alanb
This commit is contained in:
parent
91549ed5ce
commit
ac14c02059
@ -766,7 +766,7 @@ public final class ModuleLayer {
|
||||
|
||||
|
||||
/**
|
||||
* Returns an ordered stream of layers. The first element is is this layer,
|
||||
* Returns an ordered stream of layers. The first element is this layer,
|
||||
* the remaining elements are the parent layers in DFS order.
|
||||
*
|
||||
* @implNote For now, the assumption is that the number of elements will
|
||||
|
@ -293,7 +293,7 @@ public final class StackTraceElement implements java.io.Serializable {
|
||||
* <li>
|
||||
* "{@code acme@2.1/org.acme.Lib.test(Lib.java:80)}"
|
||||
* - The class of the execution point is defined in {@code acme} module
|
||||
* loaded by by a built-in class loader such as the application class loader.
|
||||
* loaded by a built-in class loader such as the application class loader.
|
||||
* </li>
|
||||
* <li>
|
||||
* "{@code MyClass.mash(MyClass.java:9)}"
|
||||
|
@ -1593,7 +1593,7 @@ public class ModuleDescriptor
|
||||
/**
|
||||
* Adds a dependence on a module with the given (and possibly empty)
|
||||
* set of modifiers. The dependence includes the version of the
|
||||
* module that that was recorded at compile-time.
|
||||
* module that was recorded at compile-time.
|
||||
*
|
||||
* @param ms
|
||||
* The set of modifiers
|
||||
|
@ -217,7 +217,7 @@ final class Resolver {
|
||||
Resolver bind() {
|
||||
|
||||
// Scan the finders for all available service provider modules. As
|
||||
// java.base uses services then then module finders will be scanned
|
||||
// java.base uses services then the module finders will be scanned
|
||||
// anyway.
|
||||
Map<String, Set<ModuleReference>> availableProviders = new HashMap<>();
|
||||
for (ModuleReference mref : findAll()) {
|
||||
|
@ -2741,7 +2741,7 @@ public class BigInteger extends Number implements Comparable<BigInteger> {
|
||||
return z;
|
||||
}
|
||||
|
||||
// These methods are intended to be be replaced by virtual machine
|
||||
// These methods are intended to be replaced by virtual machine
|
||||
// intrinsics.
|
||||
@HotSpotIntrinsicCandidate
|
||||
private static int[] implMontgomeryMultiply(int[] a, int[] b, int[] n, int len,
|
||||
|
@ -687,7 +687,7 @@ public class URLClassPath {
|
||||
}
|
||||
|
||||
/*
|
||||
* Nested class class used to represent a Loader of resources from a JAR URL.
|
||||
* Nested class used to represent a Loader of resources from a JAR URL.
|
||||
*/
|
||||
static class JarLoader extends Loader {
|
||||
private JarFile jar;
|
||||
|
@ -254,7 +254,7 @@ public interface JavaLangAccess {
|
||||
ServicesCatalog getServicesCatalog(ModuleLayer layer);
|
||||
|
||||
/**
|
||||
* Returns an ordered stream of layers. The first element is is the
|
||||
* Returns an ordered stream of layers. The first element is the
|
||||
* given layer, the remaining elements are its parents, in DFS order.
|
||||
*/
|
||||
Stream<ModuleLayer> layers(ModuleLayer layer);
|
||||
|
@ -572,7 +572,7 @@ public final class Unsafe {
|
||||
checkPointer(o, offset);
|
||||
|
||||
if (o != null) {
|
||||
// If on heap, it it must be a primitive array
|
||||
// If on heap, it must be a primitive array
|
||||
checkPrimitiveArray(o.getClass());
|
||||
}
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ public class ModulePath implements ModuleFinder {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a ModuleFinder that that locates modules on the file system by
|
||||
* Returns a ModuleFinder that locates modules on the file system by
|
||||
* searching a sequence of directories and/or packaged modules. The modules
|
||||
* may be patched by the given ModulePatcher.
|
||||
*/
|
||||
@ -121,7 +121,7 @@ public class ModulePath implements ModuleFinder {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a ModuleFinder that that locates modules on the file system by
|
||||
* Returns a ModuleFinder that locates modules on the file system by
|
||||
* searching a sequence of directories and/or packaged modules.
|
||||
*/
|
||||
public static ModuleFinder of(Path... entries) {
|
||||
@ -129,7 +129,7 @@ public class ModulePath implements ModuleFinder {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a ModuleFinder that that locates modules on the file system by
|
||||
* Returns a ModuleFinder that locates modules on the file system by
|
||||
* searching a sequence of directories and/or packaged modules.
|
||||
*
|
||||
* @param version The release version to use for multi-release JAR files
|
||||
|
@ -65,7 +65,7 @@ public class Modules {
|
||||
* Creates a new Module. The module has the given ModuleDescriptor and
|
||||
* is defined to the given class loader.
|
||||
*
|
||||
* The resulting Module is in a larval state in that it does not not read
|
||||
* The resulting Module is in a larval state in that it does not read
|
||||
* any other module and does not have any exports.
|
||||
*
|
||||
* The URI is for information purposes only.
|
||||
|
@ -59,7 +59,7 @@ class SystemModulesMap {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the array of of SystemModules class names. The elements
|
||||
* Returns the array of SystemModules class names. The elements
|
||||
* correspond to the elements in the array returned by moduleNames().
|
||||
*/
|
||||
static String[] classNames() {
|
||||
|
@ -212,7 +212,7 @@ public final class StringPrep {
|
||||
|
||||
//indexes[INDEX_MAPPING_DATA_SIZE] store the size of mappingData in bytes
|
||||
mappingData = new char[indexes[INDEX_MAPPING_DATA_SIZE]/2];
|
||||
// load the rest of the data data and initialize the data members
|
||||
// load the rest of the data and initialize the data members
|
||||
reader.read(sprepBytes,mappingData);
|
||||
|
||||
sprepTrieImpl = new StringPrepTrieImpl();
|
||||
|
@ -252,7 +252,7 @@ public class MimeEntry implements Cloneable {
|
||||
}
|
||||
|
||||
case UNKNOWN:
|
||||
// REMIND: What do do here?
|
||||
// REMIND: What to do here?
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -306,7 +306,7 @@ final class PolicyNodeImpl implements PolicyNode {
|
||||
}
|
||||
|
||||
/**
|
||||
* Add all nodes at depth depth to set and return the Set.
|
||||
* Add all nodes at depth to set and return the Set.
|
||||
* Internal recursion helper.
|
||||
*/
|
||||
private void getPolicyNodes(int depth, Set<PolicyNodeImpl> set) {
|
||||
|
@ -195,7 +195,7 @@ implements CertAttrSet<String> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Verify that that the current time is within the validity period.
|
||||
* Verify that the current time is within the validity period.
|
||||
*
|
||||
* @exception CertificateExpiredException if the certificate has expired.
|
||||
* @exception CertificateNotYetValidException if the certificate is not
|
||||
@ -208,7 +208,7 @@ implements CertAttrSet<String> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Verify that that the passed time is within the validity period.
|
||||
* Verify that the passed time is within the validity period.
|
||||
*
|
||||
* @exception CertificateExpiredException if the certificate has expired
|
||||
* with respect to the <code>Date</code> supplied.
|
||||
|
@ -422,7 +422,7 @@ int enqueue_command(jvm_t* jvm, const char* cstr, int arg_count, const char** ar
|
||||
print_debug("door_call failed\n");
|
||||
} else {
|
||||
/*
|
||||
* door_call succeeded but the call didn't return the the expected jint.
|
||||
* door_call succeeded but the call didn't return the expected jint.
|
||||
*/
|
||||
if (door_args.data_size < sizeof(int)) {
|
||||
print_debug("Enqueue error - reason unknown as result is truncated!");
|
||||
|
Loading…
Reference in New Issue
Block a user