# HG changeset patch # User igerasim # Date 1583364706 28800 # Wed Mar 04 15:31:46 2020 -0800 # Node ID 88b2b552a18d5d4f105345888686effaa7705fc3 # Parent d0b7691301182e3a9e9da495dadeff73b46bfff3 imported patch XXXXXXX-typos diff --git a/src/java.base/share/classes/java/io/Reader.java b/src/java.base/share/classes/java/io/Reader.java --- a/src/java.base/share/classes/java/io/Reader.java +++ b/src/java.base/share/classes/java/io/Reader.java @@ -62,7 +62,7 @@ * effect. * *

While the stream is open, the {@code read()}, {@code read(char[])}, - * {@code read(char[], int, int)}, {@code read(Charbuffer)}, {@code + * {@code read(char[], int, int)}, {@code read(CharBuffer)}, {@code * ready()}, {@code skip(long)}, and {@code transferTo()} methods all * behave as if end of stream has been reached. After the stream has been * closed, these methods all throw {@code IOException}. diff --git a/src/java.base/share/classes/java/lang/Character.java b/src/java.base/share/classes/java/lang/Character.java --- a/src/java.base/share/classes/java/lang/Character.java +++ b/src/java.base/share/classes/java/lang/Character.java @@ -9732,7 +9732,7 @@ } /** - * Determines if the specified character (Unicode code point) is an alphabet. + * Determines if the specified character (Unicode code point) is alphabetic. *

* A character is considered to be alphabetic if its general category type, * provided by {@link Character#getType(int) getType(codePoint)}, is any of diff --git a/src/java.base/share/classes/java/lang/Runtime.java b/src/java.base/share/classes/java/lang/Runtime.java --- a/src/java.base/share/classes/java/lang/Runtime.java +++ b/src/java.base/share/classes/java/lang/Runtime.java @@ -958,7 +958,7 @@ /* * List of version number components passed to this constructor MUST - * be at least unmodifiable (ideally immutable). In the case on an + * be at least unmodifiable (ideally immutable). In the case of an * unmodifiable list, the caller MUST hand the list over to this * constructor and never change the underlying list. */ diff --git a/src/java.base/share/classes/java/lang/invoke/MethodType.java b/src/java.base/share/classes/java/lang/invoke/MethodType.java --- a/src/java.base/share/classes/java/lang/invoke/MethodType.java +++ b/src/java.base/share/classes/java/lang/invoke/MethodType.java @@ -1379,12 +1379,12 @@ /** * This implementation returns {@code true} if {@code obj} is another - * {@code WeakEntry} whose referent is equals to this referent, or - * if {@code obj} is equals to the referent of this. This allows + * {@code WeakEntry} whose referent equals to this referent, or + * if {@code obj} equals to the referent of this. This allows * lookups to be made without wrapping in a {@code WeakEntry}. * * @param obj the object to compare - * @return true if {@code obj} is equals to this or the referent of this + * @return true if {@code obj} equals to this or the referent of this * @see MethodType#equals(Object) * @see Object#equals(Object) */ diff --git a/src/java.base/share/classes/java/net/MulticastSocket.java b/src/java.base/share/classes/java/net/MulticastSocket.java --- a/src/java.base/share/classes/java/net/MulticastSocket.java +++ b/src/java.base/share/classes/java/net/MulticastSocket.java @@ -658,7 +658,7 @@ } /** - * Disable/Enable local loopback of multicast datagrams + * Disable/Enable local loopback of multicast datagrams. * The option is used by the platform's networking code as a hint * for setting whether multicast data will be looped back to * the local socket. diff --git a/src/java.base/share/classes/java/security/SignatureSpi.java b/src/java.base/share/classes/java/security/SignatureSpi.java --- a/src/java.base/share/classes/java/security/SignatureSpi.java +++ b/src/java.base/share/classes/java/security/SignatureSpi.java @@ -90,7 +90,7 @@ try { engineSetParameter(params); } catch (UnsupportedOperationException usoe) { - // error out if not overrridden + // error out if not overridden throw new InvalidAlgorithmParameterException(usoe); } } @@ -155,7 +155,7 @@ try { engineSetParameter(params); } catch (UnsupportedOperationException usoe) { - // error out if not overrridden + // error out if not overridden throw new InvalidAlgorithmParameterException(usoe); } } diff --git a/src/java.base/share/classes/java/util/Arrays.java b/src/java.base/share/classes/java/util/Arrays.java --- a/src/java.base/share/classes/java/util/Arrays.java +++ b/src/java.base/share/classes/java/util/Arrays.java @@ -7493,7 +7493,7 @@ *

Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper - * if the following expression is true: + * prefix if the following expression is true: *

{@code
      *     (aToIndex - aFromIndex) != (bToIndex - bFromIndex) &&
      *     Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex),
@@ -7620,7 +7620,7 @@
      * 

Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper - * if the following expression is true: + * prefix if the following expression is true: *

{@code
      *     (aToIndex - aFromIndex) != (bToIndex - bFromIndex) &&
      *     Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex),
@@ -7747,7 +7747,7 @@
      * 

Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper - * if the following expression is true: + * prefix if the following expression is true: *

{@code
      *     (aToIndex - aFromIndex) != (bToIndex - bFromIndex) &&
      *     Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex),
@@ -7874,7 +7874,7 @@
      * 

Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper - * if the following expression is true: + * prefix if the following expression is true: *

{@code
      *     (aToIndex - aFromIndex) != (bToIndex - bFromIndex) &&
      *     Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex),
@@ -8001,7 +8001,7 @@
      * 

Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper - * if the following expression is true: + * prefix if the following expression is true: *

{@code
      *     (aToIndex - aFromIndex) != (bToIndex - bFromIndex) &&
      *     Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex),
@@ -8128,7 +8128,7 @@
      * 

Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper - * if the following expression is true: + * prefix if the following expression is true: *

{@code
      *     (aToIndex - aFromIndex) != (bToIndex - bFromIndex) &&
      *     Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex),
@@ -8255,7 +8255,7 @@
      * 

Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper - * if the following expression is true: + * prefix if the following expression is true: *

{@code
      *     (aToIndex - aFromIndex) != (bToIndex - bFromIndex) &&
      *     Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex),
@@ -8382,7 +8382,7 @@
      * 

Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper - * if the following expression is true: + * prefix if the following expression is true: *

{@code
      *     (aToIndex - aFromIndex) != (bToIndex - bFromIndex) &&
      *     Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex),
@@ -8513,7 +8513,7 @@
      * 

Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper - * if the following expression is true: + * prefix if the following expression is true: *

{@code
      *     (aToIndex - aFromIndex) != (bToIndex - bFromIndex) &&
      *     Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex),
@@ -8659,7 +8659,7 @@
      * 

Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper - * if the following expression is true: + * prefix if the following expression is true: *

{@code
      *     (aToIndex - aFromIndex) != (bToIndex - bFromIndex) &&
      *     Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex),
diff --git a/src/java.base/share/classes/jdk/internal/reflect/ReflectionFactory.java b/src/java.base/share/classes/jdk/internal/reflect/ReflectionFactory.java
--- a/src/java.base/share/classes/jdk/internal/reflect/ReflectionFactory.java
+++ b/src/java.base/share/classes/jdk/internal/reflect/ReflectionFactory.java
@@ -176,7 +176,7 @@
         Field root = langReflectAccess.getRoot(field);
         if (root != null) {
             // FieldAccessor will use the root unless the modifiers have
-            // been overrridden
+            // been overridden
             if (root.getModifiers() == field.getModifiers() || !override) {
                 field = root;
             }
diff --git a/src/java.base/share/classes/sun/security/provider/PolicyFile.java b/src/java.base/share/classes/sun/security/provider/PolicyFile.java
--- a/src/java.base/share/classes/sun/security/provider/PolicyFile.java
+++ b/src/java.base/share/classes/sun/security/provider/PolicyFile.java
@@ -300,7 +300,7 @@
      * initialize the Policy object.
      */
     private void init(URL url) {
-        // Properties are set once for each init(); ignore changes between
+        // Properties are set once for each init(); ignore changes
         // between diff invocations of initPolicyFile(policy, url, info).
         String numCacheStr =
           AccessController.doPrivileged(new PrivilegedAction<>() {
@@ -325,7 +325,6 @@
         } else {
             numCaches = DEFAULT_CACHE_SIZE;
         }
-        // System.out.println("number caches=" + numCaches);
         PolicyInfo newInfo = new PolicyInfo(numCaches);
         initPolicyFile(newInfo, url);
         policyInfo = newInfo;