8218022: Repeated words typos in java.base
Reviewed-by: alanb, lancea, mchung
Contributed-by: Andrey Turbanov <turbanoff@gmail.com>
--- a/src/java.base/share/classes/java/lang/LiveStackFrame.java Tue Jan 29 15:13:35 2019 -0800
+++ b/src/java.base/share/classes/java/lang/LiveStackFrame.java Wed Jan 30 00:24:32 2019 +0000
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -166,7 +166,7 @@
* @param options stack walk {@link StackWalker.Option options}
*
* @throws SecurityException if the security manager is present and
- * it denies access to {@code RuntimePermission("liveStackFrames")}; or
+ * it denies access to {@code RuntimePermission("liveStackFrames")};
* or if the given {@code options} contains
* {@link StackWalker.Option#RETAIN_CLASS_REFERENCE Option.RETAIN_CLASS_REFERENCE}
* and it denies access to {@code RuntimePermission("getStackWalkerWithClassReference")}.
--- a/src/java.base/share/classes/java/lang/Object.java Tue Jan 29 15:13:35 2019 -0800
+++ b/src/java.base/share/classes/java/lang/Object.java Wed Jan 30 00:24:32 2019 +0000
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -430,7 +430,7 @@
* }</pre>
*
* @param timeoutMillis the maximum time to wait, in milliseconds
- * @param nanos additional time, in nanoseconds, in the range range 0-999999 inclusive
+ * @param nanos additional time, in nanoseconds, in the range 0-999999 inclusive
* @throws IllegalArgumentException if {@code timeoutMillis} is negative,
* or if the value of {@code nanos} is out of range
* @throws IllegalMonitorStateException if the current thread is not
--- a/src/java.base/share/classes/java/lang/String.java Tue Jan 29 15:13:35 2019 -0800
+++ b/src/java.base/share/classes/java/lang/String.java Wed Jan 30 00:24:32 2019 +0000
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -2698,7 +2698,7 @@
* <p>
* Otherwise, returns a substring of this string beginning with the first
* code point that is not a {@link Character#isWhitespace(int) white space}
- * up to to and including the last code point of this string.
+ * up to and including the last code point of this string.
* <p>
* This method may be used to trim
* {@link Character#isWhitespace(int) white space} from
--- a/src/java.base/share/classes/java/lang/invoke/MethodHandle.java Tue Jan 29 15:13:35 2019 -0800
+++ b/src/java.base/share/classes/java/lang/invoke/MethodHandle.java Wed Jan 30 00:24:32 2019 +0000
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -1083,7 +1083,7 @@
* else if (makeVarargs)
* return asVarargsCollector(type().lastParameterType());
* else
- * return return asFixedArity();
+ * return asFixedArity();
* }</pre></blockquote>
* @param makeVarargs true if the return method handle should have variable arity behavior
* @return a method handle of the same type, with possibly adjusted variable arity behavior
--- a/src/java.base/share/classes/java/lang/invoke/MethodHandleNatives.java Tue Jan 29 15:13:35 2019 -0800
+++ b/src/java.base/share/classes/java/lang/invoke/MethodHandleNatives.java Wed Jan 30 00:24:32 2019 +0000
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -434,7 +434,7 @@
* completely in the linker method.
* As a corner case, if N==255, no appendix is possible.
* In this case, the method returned must be custom-generated to
- * to perform any needed type checking.
+ * perform any needed type checking.
* <p>
* If the JVM does not reify a method at a call site, but instead
* calls {@code linkMethod}, the corresponding call represented
--- a/src/java.base/share/classes/java/lang/invoke/VarHandle.java Tue Jan 29 15:13:35 2019 -0800
+++ b/src/java.base/share/classes/java/lang/invoke/VarHandle.java Wed Jan 30 00:24:32 2019 +0000
@@ -2160,7 +2160,7 @@
* Construct a {@linkplain VarHandleDesc} given a kind, name, and declaring
* class.
*
- * @param kind the kind of of the var handle
+ * @param kind the kind of the var handle
* @param name the unqualified name of the field, for field var handles; otherwise ignored
* @param declaringClass a {@link ClassDesc} describing the declaring class,
* for field var handles
@@ -2217,7 +2217,7 @@
/**
* Returns a {@linkplain VarHandleDesc} corresponding to a {@link VarHandle}
- * for for an array type.
+ * for an array type.
*
* @param arrayClass a {@link ClassDesc} describing the type of the array
* @return the {@linkplain VarHandleDesc}
--- a/src/java.base/share/classes/java/lang/module/Resolver.java Tue Jan 29 15:13:35 2019 -0800
+++ b/src/java.base/share/classes/java/lang/module/Resolver.java Wed Jan 30 00:24:32 2019 +0000
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -659,7 +659,7 @@
* Checks the readability graph to ensure that
* <ol>
* <li><p> A module does not read two or more modules with the same name.
- * This includes the case where a module reads another another with the
+ * This includes the case where a module reads another module with the
* same name as itself. </p></li>
* <li><p> Two or more modules in the configuration don't export the same
* package to a module that reads both. This includes the case where a
--- a/src/java.base/share/classes/java/security/cert/Extension.java Tue Jan 29 15:13:35 2019 -0800
+++ b/src/java.base/share/classes/java/security/cert/Extension.java Wed Jan 30 00:24:32 2019 +0000
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -41,7 +41,7 @@
* <p>
* Each extension contains an object identifier, a criticality setting
* indicating whether it is a critical or a non-critical extension, and
- * and an ASN.1 DER-encoded value. Its ASN.1 definition is:
+ * an ASN.1 DER-encoded value. Its ASN.1 definition is:
*
* <pre>
*
--- a/src/java.base/share/classes/java/util/SimpleTimeZone.java Tue Jan 29 15:13:35 2019 -0800
+++ b/src/java.base/share/classes/java/util/SimpleTimeZone.java Wed Jan 30 00:24:32 2019 +0000
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -310,7 +310,7 @@
* See the class description for the special cases of this parameter.
* @param endDayOfWeek The daylight saving time ending day-of-week.
* See the class description for the special cases of this parameter.
- * @param endTime The daylight saving ending time in time time mode
+ * @param endTime The daylight saving ending time in time mode
* specified by <code>endTimeMode</code>.
* @param endTimeMode The mode of the end time specified by endTime
* @param dstSavings The amount of time in milliseconds saved during
--- a/src/java.base/share/classes/java/util/stream/WhileOps.java Tue Jan 29 15:13:35 2019 -0800
+++ b/src/java.base/share/classes/java/util/stream/WhileOps.java Wed Jan 30 00:24:32 2019 +0000
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -658,7 +658,7 @@
// True if no splitting should be performed, if true then
// this spliterator may be used for an underlying spliterator whose
// covered elements have an encounter order
- // See use in stream take/dropWhile default default methods
+ // See use in stream take/dropWhile default methods
final boolean noSplitting;
// True when operations are cancelled for all related spliterators
// For taking, spliterators cannot split or traversed
--- a/src/java.base/share/classes/javax/security/auth/SubjectDomainCombiner.java Tue Jan 29 15:13:35 2019 -0800
+++ b/src/java.base/share/classes/javax/security/auth/SubjectDomainCombiner.java Wed Jan 30 00:24:32 2019 +0000
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -57,7 +57,7 @@
* {@code SubjectDomainCombiner}.
*
* @param subject the {@code Subject} to be associated with
- * with this {@code SubjectDomainCombiner}.
+ * this {@code SubjectDomainCombiner}.
*/
public SubjectDomainCombiner(Subject subject) {
this.subject = subject;
--- a/src/java.base/share/classes/javax/security/auth/callback/ConfirmationCallback.java Tue Jan 29 15:13:35 2019 -0800
+++ b/src/java.base/share/classes/javax/security/auth/callback/ConfirmationCallback.java Wed Jan 30 00:24:32 2019 +0000
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -58,7 +58,7 @@
public static final int YES_NO_OPTION = 0;
/**
- * YES/NO/CANCEL confirmation confirmation option.
+ * YES/NO/CANCEL confirmation option.
*
* <p> An underlying security service specifies this as the
* {@code optionType} to a {@code ConfirmationCallback}
@@ -68,7 +68,7 @@
public static final int YES_NO_CANCEL_OPTION = 1;
/**
- * OK/CANCEL confirmation confirmation option.
+ * OK/CANCEL confirmation option.
*
* <p> An underlying security service specifies this as the
* {@code optionType} to a {@code ConfirmationCallback}
--- a/src/java.base/share/classes/jdk/internal/access/SharedSecrets.java Tue Jan 29 15:13:35 2019 -0800
+++ b/src/java.base/share/classes/jdk/internal/access/SharedSecrets.java Wed Jan 30 00:24:32 2019 +0000
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -77,7 +77,7 @@
public static JavaUtilJarAccess javaUtilJarAccess() {
if (javaUtilJarAccess == null) {
- // Ensure JarFile is initialized; we know that that class
+ // Ensure JarFile is initialized; we know that this class
// provides the shared secret
unsafe.ensureClassInitialized(JarFile.class);
}
--- a/src/java.base/share/classes/jdk/internal/module/ServicesCatalog.java Tue Jan 29 15:13:35 2019 -0800
+++ b/src/java.base/share/classes/jdk/internal/module/ServicesCatalog.java Wed Jan 30 00:24:32 2019 +0000
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -86,7 +86,7 @@
private ServicesCatalog() { }
/**
- * Creates a ServicesCatalog that supports concurrent registration and
+ * Creates a ServicesCatalog that supports concurrent registration
* and lookup
*/
public static ServicesCatalog create() {
--- a/src/java.base/share/classes/jdk/internal/platform/Metrics.java Tue Jan 29 15:13:35 2019 -0800
+++ b/src/java.base/share/classes/jdk/internal/platform/Metrics.java Wed Jan 30 00:24:32 2019 +0000
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -278,7 +278,7 @@
* operating system tries to satisfy a memory request for any
* process in the current Isolation Group when no free memory is
* readily available. Use {@link #isCpuSetMemoryPressureEnabled()} to
- * to determine if this support is enabled.
+ * determine if this support is enabled.
*
* @return Memory pressure or 0 if not enabled or metric is not
* available.
@@ -322,7 +322,7 @@
* Returns the largest amount of physical memory, in bytes, that
* have been allocated in the Isolation Group.
*
- * @return The largest amount of memory in bytes or or 0 if this
+ * @return The largest amount of memory in bytes or 0 if this
* metric is not available.
*
*/
@@ -362,7 +362,7 @@
* Returns the largest amount of kernel physical memory, in bytes, that
* have been allocated in the Isolation Group.
*
- * @return The largest amount of memory in bytes or or 0 if this
+ * @return The largest amount of memory in bytes or 0 if this
* metric is not available.
*
*/
@@ -402,7 +402,7 @@
* Returns the largest amount of networking physical memory, in bytes,
* that have been allocated in the Isolation Group.
*
- * @return The largest amount of memory in bytes or or 0 if this
+ * @return The largest amount of memory in bytes or 0 if this
* metric is not available.
*
*/
@@ -442,7 +442,7 @@
* Returns the largest amount of physical memory and swap space,
* in bytes, that have been allocated in the Isolation Group.
*
- * @return The largest amount of memory in bytes or or 0 if this
+ * @return The largest amount of memory in bytes or 0 if this
* metric is not available.
*
*/
--- a/src/java.base/share/classes/sun/net/www/http/HttpClient.java Tue Jan 29 15:13:35 2019 -0800
+++ b/src/java.base/share/classes/sun/net/www/http/HttpClient.java Wed Jan 30 00:24:32 2019 +0000
@@ -216,7 +216,7 @@
}
/* This package-only CTOR should only be used for FTP piggy-backed on HTTP
- * HTTP URL's that use this won't take advantage of keep-alive.
+ * URL's that use this won't take advantage of keep-alive.
* Additionally, this constructor may be used as a last resort when the
* first HttpClient gotten through New() failed (probably b/c of a
* Keep-Alive mismatch).
--- a/src/java.base/share/classes/sun/security/ssl/HandshakeHash.java Tue Jan 29 15:13:35 2019 -0800
+++ b/src/java.base/share/classes/sun/security/ssl/HandshakeHash.java Wed Jan 30 00:24:32 2019 +0000
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -246,7 +246,7 @@
try {
baos.writeTo(result.baos);
} catch (IOException ex) {
- throw new RuntimeException("unable to to clone hash state");
+ throw new RuntimeException("unable to clone hash state");
}
return result;
}
--- a/src/java.base/share/classes/sun/security/ssl/RenegoInfoExtension.java Tue Jan 29 15:13:35 2019 -0800
+++ b/src/java.base/share/classes/sun/security/ssl/RenegoInfoExtension.java Wed Jan 30 00:24:32 2019 +0000
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -145,7 +145,7 @@
if (!chc.conContext.isNegotiated) {
if (chc.activeCipherSuites.contains(
CipherSuite.TLS_EMPTY_RENEGOTIATION_INFO_SCSV)) {
- // Using the the TLS_EMPTY_RENEGOTIATION_INFO_SCSV instead.
+ // Using the TLS_EMPTY_RENEGOTIATION_INFO_SCSV instead.
return null;
}
--- a/src/java.base/share/classes/sun/security/ssl/SSLTransport.java Tue Jan 29 15:13:35 2019 -0800
+++ b/src/java.base/share/classes/sun/security/ssl/SSLTransport.java Wed Jan 30 00:24:32 2019 +0000
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -71,7 +71,7 @@
* destination application data buffers.
*
* For SSL/TLS connections, if no source data, the network data may be
- * received from the underlying underlying SSL/TLS input stream.
+ * received from the underlying SSL/TLS input stream.
*
* @param context the transportation context
* @param srcs an array of {@code ByteBuffers} containing the
--- a/src/java.base/share/classes/sun/security/ssl/TrustStoreManager.java Tue Jan 29 15:13:35 2019 -0800
+++ b/src/java.base/share/classes/sun/security/ssl/TrustStoreManager.java Wed Jan 30 00:24:32 2019 +0000
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -331,7 +331,7 @@
}
/**
- * 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 {
--- a/src/java.base/share/classes/sun/security/util/ConstraintsParameters.java Tue Jan 29 15:13:35 2019 -0800
+++ b/src/java.base/share/classes/sun/security/util/ConstraintsParameters.java Wed Jan 30 00:24:32 2019 +0000
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -36,8 +36,8 @@
/**
* This class contains parameters for checking against constraints that extend
* past the publicly available parameters in java.security.AlgorithmConstraints.
-
- * This is currently on passed between between PKIX, AlgorithmChecker,
+ *
+ * This is currently passed between PKIX, AlgorithmChecker,
* and DisabledAlgorithmConstraints.
*/
public class ConstraintsParameters {
--- a/src/java.base/share/classes/sun/security/util/math/SmallValue.java Tue Jan 29 15:13:35 2019 -0800
+++ b/src/java.base/share/classes/sun/security/util/math/SmallValue.java Wed Jan 30 00:24:32 2019 +0000
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -28,7 +28,7 @@
/**
* A "small" value that can be used with the field arithmetic library. This
* interface enables optimizations based on the fact that certain values are
- * known to be small, where the definition of small is specific to the the
+ * known to be small, where the definition of small is specific to the
* arithmetic implementation.
*/