mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8218022: Repeated words typos in java.base
Reviewed-by: alanb, lancea, mchung
This commit is contained in:
parent
150a6a95d0
commit
cfeb359800
22 changed files with 49 additions and 49 deletions
|
@ -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 @@ interface LiveStackFrame extends StackFrame {
|
|||
* @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")}.
|
||||
|
|
|
@ -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 @@ public class Object {
|
|||
* }</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
|
||||
|
|
|
@ -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 @@ public final class String
|
|||
* <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
|
||||
|
|
|
@ -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 @@ assertEquals("[A, B, C]", (String) caToString2.invokeExact('A', "BC".toCharArray
|
|||
* 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
|
||||
|
|
|
@ -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 @@ class MethodHandleNatives {
|
|||
* 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
|
||||
|
|
|
@ -2160,7 +2160,7 @@ public abstract class VarHandle implements Constable {
|
|||
* 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 @@ public abstract class VarHandle implements Constable {
|
|||
|
||||
/**
|
||||
* 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}
|
||||
|
|
|
@ -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 @@ final class Resolver {
|
|||
* 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
|
||||
|
|
|
@ -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 @@ import java.io.Serializable;
|
|||
* <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>
|
||||
*
|
||||
|
|
|
@ -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 @@ public class SimpleTimeZone extends TimeZone {
|
|||
* 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
|
||||
|
|
|
@ -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 @@ final class WhileOps {
|
|||
// 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
|
||||
|
|
|
@ -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 @@ public class SubjectDomainCombiner implements java.security.DomainCombiner {
|
|||
* {@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;
|
||||
|
|
|
@ -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 class ConfirmationCallback implements Callback, java.io.Serializable {
|
|||
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 class ConfirmationCallback implements Callback, java.io.Serializable {
|
|||
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}
|
||||
|
|
|
@ -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 class SharedSecrets {
|
|||
|
||||
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);
|
||||
}
|
||||
|
|
|
@ -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 @@ public final class ServicesCatalog {
|
|||
private ServicesCatalog() { }
|
||||
|
||||
/**
|
||||
* Creates a ServicesCatalog that supports concurrent registration and
|
||||
* Creates a ServicesCatalog that supports concurrent registration
|
||||
* and lookup
|
||||
*/
|
||||
public static ServicesCatalog create() {
|
||||
|
|
|
@ -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 @@ public interface Metrics {
|
|||
* 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 @@ public interface Metrics {
|
|||
* 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 @@ public interface Metrics {
|
|||
* 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 @@ public interface Metrics {
|
|||
* 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 @@ public interface Metrics {
|
|||
* 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.
|
||||
*
|
||||
*/
|
||||
|
|
|
@ -216,7 +216,7 @@ public class HttpClient extends NetworkClient {
|
|||
}
|
||||
|
||||
/* 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).
|
||||
|
|
|
@ -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 @@ final class HandshakeHash {
|
|||
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;
|
||||
}
|
||||
|
|
|
@ -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 @@ final class RenegoInfoExtension {
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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 @@ interface SSLTransport {
|
|||
* 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
|
||||
|
|
|
@ -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 @@ 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 {
|
||||
|
|
|
@ -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 @@ import java.util.Date;
|
|||
/**
|
||||
* 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 {
|
||||
|
|
|
@ -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 @@ package sun.security.util.math;
|
|||
/**
|
||||
* 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.
|
||||
*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue