changeset 47939:39db80b32b69

8191632: Typos in comments due to duplicating words Reviewed-by: alanb
author igerasim
date Mon, 20 Nov 2017 18:46:52 -0800
parents 53440b6353b6
children 2053c5489a9e
files src/java.base/share/classes/java/lang/ModuleLayer.java src/java.base/share/classes/java/lang/StackTraceElement.java src/java.base/share/classes/java/lang/module/ModuleDescriptor.java src/java.base/share/classes/java/lang/module/Resolver.java src/java.base/share/classes/java/math/BigInteger.java src/java.base/share/classes/jdk/internal/loader/URLClassPath.java src/java.base/share/classes/jdk/internal/misc/JavaLangAccess.java src/java.base/share/classes/jdk/internal/misc/Unsafe.java src/java.base/share/classes/jdk/internal/module/ModulePath.java src/java.base/share/classes/jdk/internal/module/Modules.java src/java.base/share/classes/jdk/internal/module/SystemModulesMap.java src/java.base/share/classes/sun/net/idn/StringPrep.java src/java.base/share/classes/sun/net/www/MimeEntry.java src/java.base/share/classes/sun/security/provider/certpath/PolicyNodeImpl.java src/java.base/share/classes/sun/security/x509/PrivateKeyUsageExtension.java src/java.base/solaris/native/libjvm_dtrace/jvm_dtrace.c
diffstat 16 files changed, 19 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/ModuleLayer.java	Mon Nov 20 14:27:20 2017 -0800
+++ b/src/java.base/share/classes/java/lang/ModuleLayer.java	Mon Nov 20 18:46:52 2017 -0800
@@ -766,7 +766,7 @@
 
 
     /**
-     * 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
--- a/src/java.base/share/classes/java/lang/StackTraceElement.java	Mon Nov 20 14:27:20 2017 -0800
+++ b/src/java.base/share/classes/java/lang/StackTraceElement.java	Mon Nov 20 18:46:52 2017 -0800
@@ -293,7 +293,7 @@
      * <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)}"
--- a/src/java.base/share/classes/java/lang/module/ModuleDescriptor.java	Mon Nov 20 14:27:20 2017 -0800
+++ b/src/java.base/share/classes/java/lang/module/ModuleDescriptor.java	Mon Nov 20 18:46:52 2017 -0800
@@ -1593,7 +1593,7 @@
         /**
          * 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
--- a/src/java.base/share/classes/java/lang/module/Resolver.java	Mon Nov 20 14:27:20 2017 -0800
+++ b/src/java.base/share/classes/java/lang/module/Resolver.java	Mon Nov 20 18:46:52 2017 -0800
@@ -217,7 +217,7 @@
     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()) {
--- a/src/java.base/share/classes/java/math/BigInteger.java	Mon Nov 20 14:27:20 2017 -0800
+++ b/src/java.base/share/classes/java/math/BigInteger.java	Mon Nov 20 18:46:52 2017 -0800
@@ -2741,7 +2741,7 @@
          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,
--- a/src/java.base/share/classes/jdk/internal/loader/URLClassPath.java	Mon Nov 20 14:27:20 2017 -0800
+++ b/src/java.base/share/classes/jdk/internal/loader/URLClassPath.java	Mon Nov 20 18:46:52 2017 -0800
@@ -687,7 +687,7 @@
     }
 
     /*
-     * 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;
--- a/src/java.base/share/classes/jdk/internal/misc/JavaLangAccess.java	Mon Nov 20 14:27:20 2017 -0800
+++ b/src/java.base/share/classes/jdk/internal/misc/JavaLangAccess.java	Mon Nov 20 18:46:52 2017 -0800
@@ -254,7 +254,7 @@
     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);
--- a/src/java.base/share/classes/jdk/internal/misc/Unsafe.java	Mon Nov 20 14:27:20 2017 -0800
+++ b/src/java.base/share/classes/jdk/internal/misc/Unsafe.java	Mon Nov 20 18:46:52 2017 -0800
@@ -572,7 +572,7 @@
         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());
         }
     }
--- a/src/java.base/share/classes/jdk/internal/module/ModulePath.java	Mon Nov 20 14:27:20 2017 -0800
+++ b/src/java.base/share/classes/jdk/internal/module/ModulePath.java	Mon Nov 20 18:46:52 2017 -0800
@@ -112,7 +112,7 @@
     }
 
     /**
-     * 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 @@
     }
 
     /**
-     * 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 @@
     }
 
     /**
-     * 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
--- a/src/java.base/share/classes/jdk/internal/module/Modules.java	Mon Nov 20 14:27:20 2017 -0800
+++ b/src/java.base/share/classes/jdk/internal/module/Modules.java	Mon Nov 20 18:46:52 2017 -0800
@@ -65,7 +65,7 @@
      * 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.
--- a/src/java.base/share/classes/jdk/internal/module/SystemModulesMap.java	Mon Nov 20 14:27:20 2017 -0800
+++ b/src/java.base/share/classes/jdk/internal/module/SystemModulesMap.java	Mon Nov 20 18:46:52 2017 -0800
@@ -59,7 +59,7 @@
     }
 
     /**
-     * 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() {
--- a/src/java.base/share/classes/sun/net/idn/StringPrep.java	Mon Nov 20 14:27:20 2017 -0800
+++ b/src/java.base/share/classes/sun/net/idn/StringPrep.java	Mon Nov 20 18:46:52 2017 -0800
@@ -212,7 +212,7 @@
 
         //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();
--- a/src/java.base/share/classes/sun/net/www/MimeEntry.java	Mon Nov 20 14:27:20 2017 -0800
+++ b/src/java.base/share/classes/sun/net/www/MimeEntry.java	Mon Nov 20 18:46:52 2017 -0800
@@ -252,7 +252,7 @@
             }
 
         case UNKNOWN:
-            // REMIND: What do do here?
+            // REMIND: What to do here?
             return null;
         }
 
--- a/src/java.base/share/classes/sun/security/provider/certpath/PolicyNodeImpl.java	Mon Nov 20 14:27:20 2017 -0800
+++ b/src/java.base/share/classes/sun/security/provider/certpath/PolicyNodeImpl.java	Mon Nov 20 18:46:52 2017 -0800
@@ -306,7 +306,7 @@
     }
 
     /**
-     * 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) {
--- a/src/java.base/share/classes/sun/security/x509/PrivateKeyUsageExtension.java	Mon Nov 20 14:27:20 2017 -0800
+++ b/src/java.base/share/classes/sun/security/x509/PrivateKeyUsageExtension.java	Mon Nov 20 18:46:52 2017 -0800
@@ -195,7 +195,7 @@
     }
 
     /**
-     * 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 @@
     }
 
     /**
-     * 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.
--- a/src/java.base/solaris/native/libjvm_dtrace/jvm_dtrace.c	Mon Nov 20 14:27:20 2017 -0800
+++ b/src/java.base/solaris/native/libjvm_dtrace/jvm_dtrace.c	Mon Nov 20 18:46:52 2017 -0800
@@ -422,7 +422,7 @@
         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!");