mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8284893: Fix typos in java.base
Reviewed-by: iris, wetmore, lancea, mullan, naoto
This commit is contained in:
parent
4594696f54
commit
fb469fb894
162 changed files with 369 additions and 369 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1994, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1994, 2022, 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
|
||||
|
@ -35,7 +35,7 @@ public class MeteredStream extends FilterInputStream {
|
|||
|
||||
// Instance variables.
|
||||
/* if expected != -1, after we've read >= expected, we're "closed" and return -1
|
||||
* from subsequest read() 's
|
||||
* from subsequent read() 's
|
||||
*/
|
||||
protected boolean closed = false;
|
||||
protected long expected;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1994, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1994, 2022, 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
|
||||
|
@ -164,7 +164,7 @@ public class MimeTable implements FileNameMap {
|
|||
}
|
||||
|
||||
i = fname.lastIndexOf('.');
|
||||
// REMIND: OS specific delimters appear here
|
||||
// REMIND: OS specific delimiters appear here
|
||||
i = Math.max(i, fname.lastIndexOf('/'));
|
||||
i = Math.max(i, fname.lastIndexOf('?'));
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1999, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2022, 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
|
||||
|
@ -179,7 +179,7 @@ public class ChunkedInputStream extends InputStream implements Hurryable {
|
|||
/**
|
||||
* Ensures there is <code>size</code> bytes available in
|
||||
* <code>rawData</code>. This requires that we either
|
||||
* shift the bytes in use to the begining of the buffer
|
||||
* shift the bytes in use to the beginning of the buffer
|
||||
* or allocate a large buffer with sufficient space available.
|
||||
*/
|
||||
private void ensureRawAvailable(int size) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1994, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1994, 2022, 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
|
||||
|
@ -523,7 +523,7 @@ public class HttpClient extends NetworkClient {
|
|||
|
||||
/* We're very particular here about what our InputStream to the server
|
||||
* looks like for reasons that are apparent if you can decipher the
|
||||
* method parseHTTP(). That's why this method is overidden from the
|
||||
* method parseHTTP(). That's why this method is overridden from the
|
||||
* superclass.
|
||||
*/
|
||||
@Override
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 2022, 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
|
||||
|
@ -233,7 +233,7 @@ public class KeepAliveCache
|
|||
}
|
||||
}
|
||||
|
||||
/* Sleeps for an alloted timeout, then checks for timed out connections.
|
||||
/* Sleeps for an allotted timeout, then checks for timed out connections.
|
||||
* Errs on the side of caution (leave connections idle for a relatively
|
||||
* short time).
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 2022, 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
|
||||
|
@ -91,7 +91,7 @@ class KeepAliveStream extends MeteredStream implements Hurryable {
|
|||
&& skip(Math.min(nskip, available())) > 0L);
|
||||
} else if (expected <= KeepAliveStreamCleaner.MAX_DATA_REMAINING && !hurried) {
|
||||
//put this KeepAliveStream on the queue so that the data remaining
|
||||
//on the socket can be cleanup asyncronously.
|
||||
//on the socket can be cleanup asynchronously.
|
||||
queueForCleanup(new KeepAliveCleanerEntry(this, hc));
|
||||
} else {
|
||||
hc.closeServer();
|
||||
|
|
|
@ -410,13 +410,13 @@ public class FtpURLConnection extends URLConnection {
|
|||
}
|
||||
|
||||
/**
|
||||
* Get the InputStream to retreive the remote file. It will issue the
|
||||
* Get the InputStream to retrieve the remote file. It will issue the
|
||||
* "get" (or "dir") command to the ftp server.
|
||||
*
|
||||
* @return the {@code InputStream} to the connection.
|
||||
*
|
||||
* @throws IOException if already opened for output
|
||||
* @throws FtpProtocolException if errors occur during the transfert.
|
||||
* @throws FtpProtocolException if errors occur during the transfer.
|
||||
*/
|
||||
@Override
|
||||
public InputStream getInputStream() throws IOException {
|
||||
|
@ -543,7 +543,7 @@ public class FtpURLConnection extends URLConnection {
|
|||
*
|
||||
* @throws IOException if already opened for input or the URL
|
||||
* points to a directory
|
||||
* @throws FtpProtocolException if errors occur during the transfert.
|
||||
* @throws FtpProtocolException if errors occur during the transfer.
|
||||
*/
|
||||
@Override
|
||||
public OutputStream getOutputStream() throws IOException {
|
||||
|
@ -553,7 +553,7 @@ public class FtpURLConnection extends URLConnection {
|
|||
|
||||
if (http != null) {
|
||||
OutputStream out = http.getOutputStream();
|
||||
// getInputStream() is neccessary to force a writeRequests()
|
||||
// getInputStream() is necessary to force a writeRequests()
|
||||
// on the http client.
|
||||
http.getInputStream();
|
||||
return out;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2022, 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
|
||||
|
@ -467,7 +467,7 @@ class DigestAuthentication extends AuthenticationInfo {
|
|||
String algorithm = p.findValue("algorithm");
|
||||
String digestName = algorithm;
|
||||
if (algorithm == null || algorithm.isEmpty()) {
|
||||
algorithm = "MD5"; // The default, accoriding to rfc2069
|
||||
algorithm = "MD5"; // The default, according to rfc2069
|
||||
digestName = "MD5";
|
||||
} else {
|
||||
algorithm = algorithm.toUpperCase(Locale.ROOT);
|
||||
|
|
|
@ -600,7 +600,7 @@ public class HttpURLConnection extends java.net.HttpURLConnection {
|
|||
}
|
||||
}
|
||||
|
||||
/* adds the standard key/val pairs to reqests if necessary & write to
|
||||
/* adds the standard key/val pairs to requests if necessary & write to
|
||||
* given PrintStream
|
||||
*/
|
||||
private void writeRequests() throws IOException {
|
||||
|
@ -1899,7 +1899,7 @@ public class HttpURLConnection extends java.net.HttpURLConnection {
|
|||
|
||||
// some flags should be reset to its initialized form so that
|
||||
// even after a redirect the necessary checks can still be
|
||||
// preformed.
|
||||
// performed.
|
||||
inNegotiate = false;
|
||||
inNegotiateProxy = false;
|
||||
|
||||
|
@ -3084,7 +3084,7 @@ public class HttpURLConnection extends java.net.HttpURLConnection {
|
|||
* can be considered an approximation in that we may close a
|
||||
* different idle connection to that used by the request.
|
||||
* Additionally it's possible that we close two connections
|
||||
* - the first becuase it wasn't an EOF (and couldn't be
|
||||
* - the first because it wasn't an EOF (and couldn't be
|
||||
* hurried) - the second, another idle connection to the
|
||||
* same server. The is okay because "disconnect" is an
|
||||
* indication that the application doesn't intend to access
|
||||
|
@ -3112,7 +3112,7 @@ public class HttpURLConnection extends java.net.HttpURLConnection {
|
|||
|
||||
|
||||
} else {
|
||||
// We are deliberatly being disconnected so HttpClient
|
||||
// We are deliberately being disconnected so HttpClient
|
||||
// should not try to resend the request no matter what stage
|
||||
// of the connection we are in.
|
||||
http.setDoNotRetry(true);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2009, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2022, 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
|
||||
|
@ -32,7 +32,7 @@ import sun.util.logging.PlatformLogger;
|
|||
|
||||
/**
|
||||
* Proxy class for loading NTLMAuthentication, so as to remove static
|
||||
* dependancy.
|
||||
* dependency.
|
||||
*/
|
||||
class NTLMAuthenticationProxy {
|
||||
private static Method supportsTA;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2022, 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
|
||||
|
@ -52,7 +52,7 @@ class NegotiateAuthentication extends AuthenticationInfo {
|
|||
@SuppressWarnings("serial") // Not statically typed as Serializable
|
||||
private final HttpCallerInfo hci;
|
||||
|
||||
// These maps are used to manage the GSS availability for diffrent
|
||||
// These maps are used to manage the GSS availability for different
|
||||
// hosts. The key for both maps is the host name.
|
||||
// <code>supported</code> is set when isSupported is checked,
|
||||
// if it's true, a cached Negotiator is put into <code>cache</code>.
|
||||
|
@ -97,7 +97,7 @@ class NegotiateAuthentication extends AuthenticationInfo {
|
|||
/**
|
||||
* Find out if the HttpCallerInfo supports Negotiate protocol. In order to
|
||||
* find out yes or no, an initialization of a Negotiator object against it
|
||||
* is tried. The generated object will be cached under the name of ths
|
||||
* is tried. The generated object will be cached under the name of the
|
||||
* hostname at a success try.<br>
|
||||
*
|
||||
* If this method is called for the second time on an HttpCallerInfo with
|
||||
|
|
|
@ -563,13 +563,13 @@ final class HttpsClient extends HttpClient
|
|||
if (isDefaultHostnameVerifier) {
|
||||
// If the HNV is the default from HttpsURLConnection, we
|
||||
// will do the spoof checks in SSLSocket.
|
||||
SSLParameters paramaters = s.getSSLParameters();
|
||||
paramaters.setEndpointIdentificationAlgorithm("HTTPS");
|
||||
SSLParameters parameters = s.getSSLParameters();
|
||||
parameters.setEndpointIdentificationAlgorithm("HTTPS");
|
||||
// host has been set previously for SSLSocketImpl
|
||||
if (!(s instanceof SSLSocketImpl)) {
|
||||
paramaters.setServerNames(List.of(new SNIHostName(host)));
|
||||
parameters.setServerNames(List.of(new SNIHostName(host)));
|
||||
}
|
||||
s.setSSLParameters(paramaters);
|
||||
s.setSSLParameters(parameters);
|
||||
|
||||
needToCheckSpoofing = false;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2022, 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
|
||||
|
@ -180,10 +180,10 @@ public class JarURLConnection extends java.net.JarURLConnection {
|
|||
try {
|
||||
connect();
|
||||
if (jarEntry == null) {
|
||||
/* if the URL referes to an archive */
|
||||
/* if the URL refers to an archive */
|
||||
result = jarFileURLConnection.getContentLengthLong();
|
||||
} else {
|
||||
/* if the URL referes to an archive entry */
|
||||
/* if the URL refers to an archive entry */
|
||||
result = getJarEntry().getSize();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
|
@ -365,7 +365,7 @@ public class JarURLConnection extends java.net.JarURLConnection {
|
|||
* Returns the default value of a <code>URLConnection</code>'s
|
||||
* <code>useCaches</code> flag.
|
||||
* <p>
|
||||
* Ths default is "sticky", being a part of the static state of all
|
||||
* The default is "sticky", being a part of the static state of all
|
||||
* URLConnections. This flag applies to the next, and all following
|
||||
* URLConnections that are created.
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2001, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2022, 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
|
||||
|
@ -239,7 +239,7 @@ public class URLJarFile extends JarFile {
|
|||
}
|
||||
|
||||
/*
|
||||
* Set the call back interface to call retrive function in sun.plugin
|
||||
* Set the call back interface to call retrieve function in sun.plugin
|
||||
* package if plugin is running.
|
||||
*/
|
||||
public static void setCallBack(URLJarFileCallBack cb)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue