diff --git a/src/java.base/share/classes/java/lang/WeakPairMap.java b/src/java.base/share/classes/java/lang/WeakPairMap.java index 1e4e12767b32477dd8beb032a8c32d767eb0ad13..0e521dc901ad03243cf60acdf6f66ea8a6fe490a 100644 --- a/src/java.base/share/classes/java/lang/WeakPairMap.java +++ b/src/java.base/share/classes/java/lang/WeakPairMap.java @@ -88,7 +88,7 @@ final class WeakPairMap { * Maps the specified key pair to the specified value in this WeakPairMap. * Neither the keys nor the value can be null. *

The value can be retrieved by calling the {@link #get} method - * with the the same keys (compared by identity). + * with the same keys (compared by identity). * * @param k1 the 1st of the pair of keys with which the specified value is to * be associated diff --git a/src/java.base/share/classes/java/lang/invoke/MethodHandleImpl.java b/src/java.base/share/classes/java/lang/invoke/MethodHandleImpl.java index 348a15921f0e4fd02fdeaede209b85d08ea91a92..bf3b30443a6ca8e23f5920667560dfe06207000f 100644 --- a/src/java.base/share/classes/java/lang/invoke/MethodHandleImpl.java +++ b/src/java.base/share/classes/java/lang/invoke/MethodHandleImpl.java @@ -1196,7 +1196,7 @@ import static jdk.internal.org.objectweb.asm.Opcodes.*; static MethodHandle bindCaller(MethodHandle mh, Class hostClass) { - // Code in the the boot layer should now be careful while creating method handles or + // Code in the boot layer should now be careful while creating method handles or // functional interface instances created from method references to @CallerSensitive methods, // it needs to be ensured the handles or interface instances are kept safe and are not passed // from the boot layer to untrusted code. diff --git a/src/java.base/share/classes/java/lang/invoke/StringConcatFactory.java b/src/java.base/share/classes/java/lang/invoke/StringConcatFactory.java index c7963ddb22d02b388ee24ff15bc36d106b84a75c..4bc58803c9058d8af5b96e9e7dd08c5b234bfda9 100644 --- a/src/java.base/share/classes/java/lang/invoke/StringConcatFactory.java +++ b/src/java.base/share/classes/java/lang/invoke/StringConcatFactory.java @@ -195,7 +195,7 @@ public final class StringConcatFactory { // In case we need to double-back onto the StringConcatFactory during this // static initialization, make sure we have the reasonable defaults to complete // the static initialization properly. After that, actual users would use the - // the proper values we have read from the the properties. + // the proper values we have read from the properties. STRATEGY = DEFAULT_STRATEGY; // CACHE_ENABLE = false; // implied // CACHE = null; // implied diff --git a/src/java.base/share/classes/java/util/Locale.java b/src/java.base/share/classes/java/util/Locale.java index 825ba8b8ff566974c283e6702fa74a0b1ae9098b..3bca89160527ac5a8c0eba99b90da33f22940188 100644 --- a/src/java.base/share/classes/java/util/Locale.java +++ b/src/java.base/share/classes/java/util/Locale.java @@ -1909,7 +1909,7 @@ public final class Locale implements Cloneable, Serializable { * Returns a name for the locale that is appropriate for display to the * user. This will be the values returned by getDisplayLanguage(), * getDisplayScript(), getDisplayCountry(), and getDisplayVariant() assembled - * into a single string. The the non-empty values are used in order, + * into a single string. The non-empty values are used in order, * with the second and subsequent names in parentheses. For example: *

* language (script, country, variant)
diff --git a/src/java.base/share/classes/java/util/ServiceLoader.java b/src/java.base/share/classes/java/util/ServiceLoader.java index 75d1157c74a0a4400af13f5c500ceeb5e331dbe6..1f2e0e82f8e6b55c144b81127e738edc260ec325 100644 --- a/src/java.base/share/classes/java/util/ServiceLoader.java +++ b/src/java.base/share/classes/java/util/ServiceLoader.java @@ -1409,7 +1409,7 @@ public final class ServiceLoader * *

To achieve laziness the actual work of locating providers is done * when processing the stream. If a service provider cannot be loaded for any - * of the the reasons specified in the Errors section + * of the reasons specified in the Errors section * above then {@link ServiceConfigurationError} is thrown by whatever method * caused the service provider to be loaded.

* diff --git a/src/java.base/share/classes/jdk/internal/module/ModuleBootstrap.java b/src/java.base/share/classes/jdk/internal/module/ModuleBootstrap.java index df580eaf9c74327044e3826a9ba0b418bd729932..856ee4c23b83c4ed1729bb45e94f3f1459f46c3e 100644 --- a/src/java.base/share/classes/jdk/internal/module/ModuleBootstrap.java +++ b/src/java.base/share/classes/jdk/internal/module/ModuleBootstrap.java @@ -66,7 +66,7 @@ import jdk.internal.perf.PerfCounter; * -m and --add-modules options. The modules are located on a module path that * is constructed from the upgrade module path, system modules, and application * module path. The Configuration is instantiated as the boot layer with each - * module in the the configuration defined to a class loader. + * module in the configuration defined to a class loader. */ public final class ModuleBootstrap { diff --git a/src/java.base/share/classes/jdk/internal/module/ModuleHashesBuilder.java b/src/java.base/share/classes/jdk/internal/module/ModuleHashesBuilder.java index 804f5eb4527d1c095803457b0e5b94d0b9a04971..1f9d94ca1d9c34945ed2cf34fa16e65215c76ca3 100644 --- a/src/java.base/share/classes/jdk/internal/module/ModuleHashesBuilder.java +++ b/src/java.base/share/classes/jdk/internal/module/ModuleHashesBuilder.java @@ -74,7 +74,7 @@ public class ModuleHashesBuilder { * the outgoing edges from M to non-candidate modules. */ public Map computeHashes(Set roots) { - // build a graph containing the the packaged modules and + // build a graph containing the packaged modules and // its transitive dependences matching --hash-modules Graph.Builder builder = new Graph.Builder<>(); Deque deque = new ArrayDeque<>(configuration.modules()); diff --git a/src/java.base/share/classes/jdk/internal/module/Resources.java b/src/java.base/share/classes/jdk/internal/module/Resources.java index 53865742dbec73a040f52395f301348439c3c1f2..d224d1aba84d4121cff21a47092fd18f06180d0b 100644 --- a/src/java.base/share/classes/jdk/internal/module/Resources.java +++ b/src/java.base/share/classes/jdk/internal/module/Resources.java @@ -56,7 +56,7 @@ public final class Resources { /** * Derive a package name for a resource. The package name * returned by this method may not be a legal package name. This method - * returns null if the the resource name ends with a "/" (a directory) + * returns null if the resource name ends with a "/" (a directory) * or the resource name does not contain a "/". */ public static String toPackageName(String name) { diff --git a/src/java.base/share/classes/jdk/internal/org/objectweb/asm/Frame.java b/src/java.base/share/classes/jdk/internal/org/objectweb/asm/Frame.java index 811b74c724285e2dce0a00843708e6b79cb51baa..bb7ff8f514775d2e7f565437448ad5c8e8481e89 100644 --- a/src/java.base/share/classes/jdk/internal/org/objectweb/asm/Frame.java +++ b/src/java.base/share/classes/jdk/internal/org/objectweb/asm/Frame.java @@ -192,7 +192,7 @@ final class Frame { private static final int LOCAL = 0x2000000; /** - * Kind of the the types that are relative to the stack of an input stack + * Kind of the types that are relative to the stack of an input stack * map frame. The value of such types is a position relatively to the top of * this stack. */ diff --git a/src/java.base/share/classes/sun/security/provider/certpath/ResponderId.java b/src/java.base/share/classes/sun/security/provider/certpath/ResponderId.java index f67786e432c7af803f10637739c15bd8e43d9c62..b6551cc94032a4da1501f26f9e5f4a2b7a28a8d6 100644 --- a/src/java.base/share/classes/sun/security/provider/certpath/ResponderId.java +++ b/src/java.base/share/classes/sun/security/provider/certpath/ResponderId.java @@ -119,7 +119,7 @@ public final class ResponderId { * When encoded in DER this object will use the byKey option, a * SHA-1 hash of the responder's public key. * - * @param pubKey the the OCSP responder's public key + * @param pubKey the OCSP responder's public key * * @throws IOException if the internal DER-encoding of the * {@code KeyIdentifier} fails. diff --git a/src/java.base/share/classes/sun/security/provider/certpath/SunCertPathBuilderException.java b/src/java.base/share/classes/sun/security/provider/certpath/SunCertPathBuilderException.java index 8ba440d51814a303c3d3388844b4ea7dc91efc38..db896a78f17132fe1bf138febffea11032d7328e 100644 --- a/src/java.base/share/classes/sun/security/provider/certpath/SunCertPathBuilderException.java +++ b/src/java.base/share/classes/sun/security/provider/certpath/SunCertPathBuilderException.java @@ -94,7 +94,7 @@ public class SunCertPathBuilderException extends CertPathBuilderException { } /** - * Creates a SunCertPathBuilderException withe the specified + * Creates a SunCertPathBuilderException with the specified * detail message and adjacency list. * * @param msg the detail message diff --git a/src/java.base/share/classes/sun/security/ssl/CertStatusReqItemV2.java b/src/java.base/share/classes/sun/security/ssl/CertStatusReqItemV2.java index 1f4ee77c92fc1be7f935fd53a6774b3bdee49ad7..b44c20f72cc06a3566e7c8db2ec664b5f629a2be 100644 --- a/src/java.base/share/classes/sun/security/ssl/CertStatusReqItemV2.java +++ b/src/java.base/share/classes/sun/security/ssl/CertStatusReqItemV2.java @@ -145,7 +145,7 @@ final class CertStatusReqItemV2 { * @return the encoded length of this {@code CertStatusReqItemV2} */ int length() { - // The length is the the status type (1 byte) + the request length + // The length is the status type (1 byte) + the request length // field (2 bytes) + the StatusRequest data length. return request.length() + 3; } diff --git a/src/java.base/share/classes/sun/security/ssl/MAC.java b/src/java.base/share/classes/sun/security/ssl/MAC.java index 20c73db6b0130bb737644d9b8a94d81f77195d69..250e97fbc0f7faaf3ab9bb9af17962d0f9a705ef 100644 --- a/src/java.base/share/classes/sun/security/ssl/MAC.java +++ b/src/java.base/share/classes/sun/security/ssl/MAC.java @@ -188,7 +188,7 @@ final class MAC extends Authenticator { * @param type record type * @param bb a ByteBuffer in which the position and limit * demarcate the data to be MAC'd. - * @param isSimulated if true, simulate the the MAC computation + * @param isSimulated if true, simulate the MAC computation * * @return the MAC result */ diff --git a/src/java.base/share/classes/sun/security/ssl/TrustStoreManager.java b/src/java.base/share/classes/sun/security/ssl/TrustStoreManager.java index 5681a7de1f40bee2973a450069765c79d0c9d77a..6685d754a1b0abc4a048abcfe77a79da5e45a1c7 100644 --- a/src/java.base/share/classes/sun/security/ssl/TrustStoreManager.java +++ b/src/java.base/share/classes/sun/security/ssl/TrustStoreManager.java @@ -333,7 +333,7 @@ final class TrustStoreManager { } /** - * Load the the KeyStore as described in the specified descriptor. + * Load the KeyStore as described in the specified descriptor. */ private static KeyStore loadKeyStore( TrustStoreDescriptor descriptor) throws Exception { diff --git a/src/java.base/share/classes/sun/text/normalizer/Trie2.java b/src/java.base/share/classes/sun/text/normalizer/Trie2.java index 32e237bb8f38145405dc4f2fbf5d06b60c11379c..5d57f08a85d9c63b547807b42f7bacb5ba188441 100644 --- a/src/java.base/share/classes/sun/text/normalizer/Trie2.java +++ b/src/java.base/share/classes/sun/text/normalizer/Trie2.java @@ -592,7 +592,7 @@ abstract class Trie2 implements Iterable { // may be lower when iterating over the code points for a single lead surrogate. private int limitCP; - // True while iterating over the the Trie2 values for code points. + // True while iterating over the Trie2 values for code points. // False while iterating over the alternate values for lead surrogates. private boolean doingCodePoints = true;