8284893: Fix typos in java.base

Reviewed-by: iris, wetmore, lancea, mullan, naoto
This commit is contained in:
Magnus Ihse Bursie 2022-04-19 20:07:57 +00:00
parent 4594696f54
commit fb469fb894
162 changed files with 369 additions and 369 deletions

View file

@ -313,7 +313,7 @@ final class AixPollPort
* Task to process events from pollset and dispatch to the channel's * Task to process events from pollset and dispatch to the channel's
* onEvent handler. * onEvent handler.
* *
* Events are retreived from pollset in batch and offered to a BlockingQueue * Events are retrieved from pollset in batch and offered to a BlockingQueue
* where they are consumed by handler threads. A special "NEED_TO_POLL" * where they are consumed by handler threads. A special "NEED_TO_POLL"
* event is used to signal one consumer to re-poll when all events have * event is used to signal one consumer to re-poll when all events have
* been consumed. * been consumed.
@ -432,7 +432,7 @@ final class AixPollPort
continue; continue;
} }
// contine after we processed a control event // continue after we processed a control event
if (ev == CONTINUE_AFTER_CTL_EVENT) { if (ev == CONTINUE_AFTER_CTL_EVENT) {
continue; continue;
} }

View file

@ -29,7 +29,7 @@
/* /*
* Very limited AIX port of dladdr() for libjli.so. * Very limited AIX port of dladdr() for libjli.so.
* *
* We try to mimick dladdr(3) on Linux (see http://linux.die.net/man/3/dladdr) * We try to mimic dladdr(3) on Linux (see http://linux.die.net/man/3/dladdr)
* dladdr(3) is not POSIX but a GNU extension, and is not available on AIX. * dladdr(3) is not POSIX but a GNU extension, and is not available on AIX.
* *
* We only support Dl_info.dli_fname here as this is the only thing that is * We only support Dl_info.dli_fname here as this is the only thing that is

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -185,9 +185,9 @@ public class CgroupV1Subsystem implements CgroupSubsystem, CgroupV1Metrics {
} }
private static long getLongValue(CgroupSubsystemController controller, private static long getLongValue(CgroupSubsystemController controller,
String parm) { String param) {
return CgroupSubsystemController.getLongValue(controller, return CgroupSubsystemController.getLongValue(controller,
parm, param,
CgroupV1SubsystemController::convertStringToLong, CgroupV1SubsystemController::convertStringToLong,
CgroupSubsystem.LONG_RETVAL_UNLIMITED); CgroupSubsystem.LONG_RETVAL_UNLIMITED);
} }

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -80,9 +80,9 @@ public class CgroupV1SubsystemController implements CgroupSubsystemController {
CgroupSubsystem.LONG_RETVAL_UNLIMITED /* retval on error */); CgroupSubsystem.LONG_RETVAL_UNLIMITED /* retval on error */);
} }
public static double getDoubleValue(CgroupSubsystemController controller, String parm) { public static double getDoubleValue(CgroupSubsystemController controller, String param) {
return CgroupSubsystemController.getDoubleValue(controller, return CgroupSubsystemController.getDoubleValue(controller,
parm, param,
DOUBLE_RETVAL_UNLIMITED /* retval on error */); DOUBLE_RETVAL_UNLIMITED /* retval on error */);
} }

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -487,7 +487,7 @@ public final class KeychainStore extends KeyStoreSpi {
if (value instanceof TrustedCertEntry) { if (value instanceof TrustedCertEntry) {
TrustedCertEntry tce = (TrustedCertEntry)value; TrustedCertEntry tce = (TrustedCertEntry)value;
if (tce.cert.equals(cert)) { if (tce.cert.equals(cert)) {
throw new KeyStoreException("Keychain does not support mulitple copies of same certificate."); throw new KeyStoreException("Keychain does not support multiple copies of same certificate.");
} }
} }
} }

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -150,7 +150,7 @@ char *getMacOSXLocale(int cat) {
* and script designators of BCP 47. So possible formats are: * and script designators of BCP 47. So possible formats are:
* *
* "en" (language designator only) * "en" (language designator only)
* "haw" (3-letter lanuage designator) * "haw" (3-letter language designator)
* "en-GB" (language with alpha-2 region designator) * "en-GB" (language with alpha-2 region designator)
* "es-419" (language with 3-digit UN M.49 area code) * "es-419" (language with 3-digit UN M.49 area code)
* "zh-Hans" (language with ISO 15924 script designator) * "zh-Hans" (language with ISO 15924 script designator)

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2008, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -108,7 +108,7 @@ Java_sun_nio_fs_BsdNativeDispatcher_getfsstat(JNIEnv* env, jclass this)
} }
// It's possible that a new filesystem gets mounted between // It's possible that a new filesystem gets mounted between
// the first getfsstat and the second so loop until consistant // the first getfsstat and the second so loop until consistent
while (nentries != iter->nentries) { while (nentries != iter->nentries) {
if (iter->buf != NULL) if (iter->buf != NULL)

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2002, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2002, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -162,7 +162,7 @@ final class AESCrypt extends SymmetricCipher implements AESConstants
private static final byte[] rcon = new byte[30]; private static final byte[] rcon = new byte[30];
// Static code - to intialise S-boxes and T-boxes // Static code - to initialise S-boxes and T-boxes
static static
{ {
int ROOT = 0x11B; int ROOT = 0x11B;

View file

@ -874,7 +874,7 @@ abstract class ChaCha20Cipher extends CipherSpi {
int ws14 = initState[14]; int ws14 = initState[14];
int ws15 = initState[15]; int ws15 = initState[15];
// Peform 10 iterations of the 8 quarter round set // Perform 10 iterations of the 8 quarter round set
for (int round = 0; round < 10; round++) { for (int round = 0; round < 10; round++) {
ws00 += ws04; ws00 += ws04;
ws12 = Integer.rotateLeft(ws12 ^ ws00, 16); ws12 = Integer.rotateLeft(ws12 ^ ws00, 16);

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997, 2017, 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -184,7 +184,7 @@ public final class DHKeyPairGenerator extends KeyPairGeneratorSpi {
// //
// PKCS#3 section 7.1 "Private-value generation" // PKCS#3 section 7.1 "Private-value generation"
// Repeat if either of the followings does not hold: // Repeat if either of the following does not hold:
// 0 < x < p-1 // 0 < x < p-1
// 2^(lSize-1) <= x < 2^(lSize) // 2^(lSize-1) <= x < 2^(lSize)
// //

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2004, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2004, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -545,7 +545,7 @@ abstract class KeyWrapCipher extends CipherSpi {
// actual impl for various engineDoFinal(...) methods. // actual impl for various engineDoFinal(...) methods.
// prepare 'out' buffer with the buffered bytes in 'dataBuf', // prepare 'out' buffer with the buffered bytes in 'dataBuf',
// and the to-be-processed bytes in 'in', then perform single-part // and the to-be-processed bytes in 'in', then perform single-part
// encryption/decrytion over 'out' buffer // encryption/decryption over 'out' buffer
private int implDoFinal(byte[] in, int inOfs, int inLen, byte[] out) private int implDoFinal(byte[] in, int inOfs, int inLen, byte[] out)
throws IllegalBlockSizeException, BadPaddingException, throws IllegalBlockSizeException, BadPaddingException,
ShortBufferException { ShortBufferException {

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2010, 2019, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2010, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -71,7 +71,7 @@ public final class NTLMException extends GeneralSecurityException {
* Constructs an NTLMException object. * Constructs an NTLMException object.
* @param errorCode the error code, which can be retrieved by * @param errorCode the error code, which can be retrieved by
* the {@link #errorCode() } method. * the {@link #errorCode() } method.
* @param msg the string message, which can be retrived by * @param msg the string message, which can be retrieved by
* the {@link Exception#getMessage() } method. * the {@link Exception#getMessage() } method.
*/ */
public NTLMException(int errorCode, String msg) { public NTLMException(int errorCode, String msg) {

View file

@ -494,7 +494,7 @@ public abstract class ClassLoader {
} }
// package-private used by StackTraceElement to avoid // package-private used by StackTraceElement to avoid
// calling the overrideable getName method // calling the overridable getName method
final String name() { final String name() {
return name; return name;
} }

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2014, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -629,7 +629,7 @@ public final class ModuleLayer {
* </p> * </p>
* *
* @apiNote It is implementation specific as to whether creating a layer * @apiNote It is implementation specific as to whether creating a layer
* with this method is an atomic operation or not. Consequentially it is * with this method is an atomic operation or not. Consequently it is
* possible for this method to fail with some modules, but not all, defined * possible for this method to fail with some modules, but not all, defined
* to the Java virtual machine. * to the Java virtual machine.
* *

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -241,7 +241,7 @@ public interface ProcessHandle extends Comparable<ProcessHandle> {
* <p> * <p>
* The executable pathname may contain only the * The executable pathname may contain only the
* name of the executable without the full path information. * name of the executable without the full path information.
* It is undecideable whether white space separates different * It is undecidable whether white space separates different
* arguments or is part of a single argument. * arguments or is part of a single argument.
* *
* @return an {@code Optional<String>} of the command line * @return an {@code Optional<String>} of the command line

View file

@ -3256,7 +3256,7 @@ public final class String
icoder |= delimiter.coder(); icoder |= delimiter.coder();
} }
// assert len > 0L; // max: (long) Integer.MAX_VALUE << 32 // assert len > 0L; // max: (long) Integer.MAX_VALUE << 32
// following loop wil add max: (long) Integer.MAX_VALUE * Integer.MAX_VALUE to len // following loop will add max: (long) Integer.MAX_VALUE * Integer.MAX_VALUE to len
// so len can overflow at most once // so len can overflow at most once
for (int i = 0; i < size; i++) { for (int i = 0; i < size; i++) {
var el = elements[i]; var el = elements[i];

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2008, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2008, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -238,7 +238,7 @@ class MethodHandleNatives {
throw new InternalError(err); throw new InternalError(err);
} catch (NoSuchFieldException | IllegalAccessException ex) { } catch (NoSuchFieldException | IllegalAccessException ex) {
String err = (name+": JVM has "+vmval+" which Java does not define"); String err = (name+": JVM has "+vmval+" which Java does not define");
// ignore exotic ops the JVM cares about; we just wont issue them // ignore exotic ops the JVM cares about; we just won't issue them
//System.err.println("warning: "+err); //System.err.println("warning: "+err);
continue; continue;
} }

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2009, 2021, 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -1503,7 +1503,7 @@ public class ModuleDescriptor
* *
* If {@code strict} is {@code true} then module, package, and class * If {@code strict} is {@code true} then module, package, and class
* names are checked to ensure they are legal names. In addition, the * names are checked to ensure they are legal names. In addition, the
* {@link #build buid} method will add "{@code requires java.base}" if * {@link #build build} method will add "{@code requires java.base}" if
* the dependency is not declared. * the dependency is not declared.
*/ */
Builder(String name, boolean strict, Set<Modifier> modifiers) { Builder(String name, boolean strict, Set<Modifier> modifiers) {

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1999, 2021, 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -898,7 +898,7 @@ public class Proxy implements java.io.Serializable {
private static final AtomicInteger counter = new AtomicInteger(); private static final AtomicInteger counter = new AtomicInteger();
/* /*
* Define a dynamic module with a packge named $MODULE which * Define a dynamic module with a package named $MODULE which
* is unconditionally exported and another package named * is unconditionally exported and another package named
* com.sun.proxy.$MODULE which is encapsulated. * com.sun.proxy.$MODULE which is encapsulated.
* *

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -331,7 +331,7 @@ public class ObjectMethods {
* Chops the getters into smaller chunks according to the maximum number of slots * Chops the getters into smaller chunks according to the maximum number of slots
* StringConcatFactory::makeConcatWithConstants can chew * StringConcatFactory::makeConcatWithConstants can chew
* @param getters the current getters * @param getters the current getters
* @return chunks that wont surpass the maximum number of slots StringConcatFactory::makeConcatWithConstants can chew * @return chunks that won't surpass the maximum number of slots StringConcatFactory::makeConcatWithConstants can chew
*/ */
private static List<List<MethodHandle>> split(MethodHandle[] getters) { private static List<List<MethodHandle>> split(MethodHandle[] getters) {
List<List<MethodHandle>> splits = new ArrayList<>(); List<List<MethodHandle>> splits = new ArrayList<>();

View file

@ -2157,7 +2157,7 @@ public class BigDecimal extends Number implements Comparable<BigDecimal> {
// //
// unscaledValue * 10^(-scale) // unscaledValue * 10^(-scale)
// //
// where unscaledValue is an integer with the mimimum // where unscaledValue is an integer with the minimum
// precision for the cohort of the numerical value. To // precision for the cohort of the numerical value. To
// allow binary floating-point hardware to be used to get // allow binary floating-point hardware to be used to get
// approximately a 15 digit approximation to the square // approximately a 15 digit approximation to the square
@ -4311,7 +4311,7 @@ public class BigDecimal extends Number implements Comparable<BigDecimal> {
* digits. * digits.
* *
* @param x the {@code long} * @param x the {@code long}
* @return the length of the unscaled value, in deciaml digits. * @return the length of the unscaled value, in decimal digits.
*/ */
static int longDigitLength(long x) { static int longDigitLength(long x) {
/* /*
@ -4944,7 +4944,7 @@ public class BigDecimal extends Number implements Comparable<BigDecimal> {
} }
/* /*
* returns INFLATED if oveflow * returns INFLATED if overflow
*/ */
private static long add(long xs, long ys){ private static long add(long xs, long ys){
long sum = xs + ys; long sum = xs + ys;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -3923,7 +3923,7 @@ public class BigInteger extends Number implements Comparable<BigInteger> {
* *
* @param val BigInteger whose magnitude array to be compared. * @param val BigInteger whose magnitude array to be compared.
* @return -1, 0 or 1 as this magnitude array is less than, equal to or * @return -1, 0 or 1 as this magnitude array is less than, equal to or
* greater than the magnitude aray for the specified BigInteger's. * greater than the magnitude array for the specified BigInteger's.
*/ */
final int compareMagnitude(BigInteger val) { final int compareMagnitude(BigInteger val) {
int[] m1 = mag; int[] m1 = mag;

View file

@ -176,7 +176,7 @@ import sun.nio.ch.DefaultSelectorProvider;
* // optionally configure multicast TTL; the TTL defines the scope of a * // optionally configure multicast TTL; the TTL defines the scope of a
* // multicast datagram, for example, confining it to host local (0) or * // multicast datagram, for example, confining it to host local (0) or
* // link local (1) etc... * // link local (1) etc...
* int ttl = ...; // a number betwen 0 and 255 * int ttl = ...; // a number between 0 and 255
* sender.setOption(StandardSocketOptions.IP_MULTICAST_TTL, ttl); * sender.setOption(StandardSocketOptions.IP_MULTICAST_TTL, ttl);
* *
* // send a packet to a multicast group * // send a packet to a multicast group

View file

@ -387,7 +387,7 @@ class Inet6Address extends InetAddress {
holder6 = new Inet6AddressHolder(); holder6 = new Inet6AddressHolder();
try { try {
initif (hostName, addr, null); initif (hostName, addr, null);
} catch (UnknownHostException e) {} /* cant happen if ifname is null */ } catch (UnknownHostException e) {} /* can't happen if ifname is null */
} }
Inet6Address (String hostName, byte[] addr, NetworkInterface nif) Inet6Address (String hostName, byte[] addr, NetworkInterface nif)

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1995, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1995, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -723,7 +723,7 @@ public final class URL implements java.io.Serializable {
String protocol = uri.getScheme(); String protocol = uri.getScheme();
// In general we need to go via Handler.parseURL, but for the jrt // In general we need to go via Handler.parseURL, but for the jrt
// protocol we enforce that the Handler is not overrideable and can // protocol we enforce that the Handler is not overridable and can
// optimize URI to URL conversion. // optimize URI to URL conversion.
// //
// Case-sensitive comparison for performance; malformed protocols will // Case-sensitive comparison for performance; malformed protocols will

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -138,7 +138,7 @@ import java.io.UncheckedIOException;
return mappingAddress(address, mappingOffset, 0); return mappingAddress(address, mappingOffset, 0);
} }
// Given an offset previously otained from calling // Given an offset previously obtained from calling
// mappingOffset(index) returns the largest page aligned address // mappingOffset(index) returns the largest page aligned address
// of the mapping less than or equal to the address of the buffer // of the mapping less than or equal to the address of the buffer
// element identified by index. // element identified by index.
@ -147,7 +147,7 @@ import java.io.UncheckedIOException;
return indexAddress - mappingOffset; return indexAddress - mappingOffset;
} }
// given a mappingOffset previously otained from calling // given a mappingOffset previously obtained from calling
// mappingOffset(index) return that offset added to the supplied // mappingOffset(index) return that offset added to the supplied
// length. // length.
private static long mappingLength(long mappingOffset, long length) { private static long mappingLength(long mappingOffset, long length) {

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997, 2019, 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -295,7 +295,7 @@ public class KeyFactory {
/** /**
* Update the active KeyFactorySpi of this class and return the next * Update the active KeyFactorySpi of this class and return the next
* implementation for failover. If no more implemenations are * implementation for failover. If no more implementations are
* available, this method returns null. However, the active spi of * available, this method returns null. However, the active spi of
* this class is never set to null. * this class is never set to null.
*/ */

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -603,7 +603,7 @@ public abstract class KeyPairGenerator extends KeyPairGeneratorSpi {
/** /**
* Update the active spi of this class and return the next * Update the active spi of this class and return the next
* implementation for failover. If no more implemenations are * implementation for failover. If no more implementations are
* available, this method returns null. However, the active spi of * available, this method returns null. However, the active spi of
* this class is never set to null. * this class is never set to null.
*/ */

View file

@ -771,7 +771,7 @@ public class KeyStore {
} }
/** /**
* Gets the trusted {@code Certficate} from this entry. * Gets the trusted {@code Certificate} from this entry.
* *
* @return the trusted {@code Certificate} from this entry * @return the trusted {@code Certificate} from this entry
*/ */

View file

@ -1605,7 +1605,7 @@ public abstract class Provider extends Properties {
"java.lang.Object"); "java.lang.Object");
} }
// get the "standard" (mixed-case) engine name for arbitary case engine name // get the "standard" (mixed-case) engine name for arbitrary case engine name
// if there is no known engine by that name, return s // if there is no known engine by that name, return s
private static String getEngineName(String s) { private static String getEngineName(String s) {
// try original case first, usually correct // try original case first, usually correct

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -225,7 +225,7 @@ public final class Security {
* Looks up providers, and returns the property (and its associated * Looks up providers, and returns the property (and its associated
* provider) mapping the key, if any. * provider) mapping the key, if any.
* The order in which the providers are looked up is the * The order in which the providers are looked up is the
* provider-preference order, as specificed in the security * provider-preference order, as specified in the security
* properties file. * properties file.
*/ */
private static ProviderProperty getProviderProperty(String key) { private static ProviderProperty getProviderProperty(String key) {

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -405,7 +405,7 @@ public class ChoiceFormat extends NumberFormat {
int i; int i;
for (i = 0; i < choiceLimits.length; ++i) { for (i = 0; i < choiceLimits.length; ++i) {
if (!(number >= choiceLimits[i])) { if (!(number >= choiceLimits[i])) {
// same as number < choiceLimits, except catchs NaN // same as number < choiceLimits, except catches NaN
break; break;
} }
} }
@ -464,7 +464,7 @@ public class ChoiceFormat extends NumberFormat {
* {@link Math#nextUp(double) Math.nextUp(d)} * {@link Math#nextUp(double) Math.nextUp(d)}
* *
* @param d the reference value * @param d the reference value
* @return the least double value greather than {@code d} * @return the least double value greater than {@code d}
* @see #previousDouble * @see #previousDouble
*/ */
public static final double nextDouble (double d) { public static final double nextDouble (double d) {

View file

@ -1723,7 +1723,7 @@ public class DecimalFormat extends NumberFormat {
} }
} }
// ======== End fast-path formating logic for double ========================= // ======== End fast-path formatting logic for double =========================
/** /**
* Complete the formatting of a finite number. On entry, the digitList must * Complete the formatting of a finite number. On entry, the digitList must

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -461,7 +461,7 @@ final class DigitList implements Cloneable {
* rounding done, is needed in this class. * rounding done, is needed in this class.
* *
* - For the HALF_DOWN, HALF_EVEN, HALF_UP rounding rules below: * - For the HALF_DOWN, HALF_EVEN, HALF_UP rounding rules below:
* In the case of formating float or double, We must take into * In the case of formatting float or double, We must take into
* account what FloatingDecimal has done in the binary to decimal * account what FloatingDecimal has done in the binary to decimal
* conversion. * conversion.
* *
@ -469,7 +469,7 @@ final class DigitList implements Cloneable {
* value (returning decimal digits equal to tie when it is below), * value (returning decimal digits equal to tie when it is below),
* or "truncate" the value to the tie while value is above it, * or "truncate" the value to the tie while value is above it,
* or provide the exact decimal digits when the binary value can be * or provide the exact decimal digits when the binary value can be
* converted exactly to its decimal representation given formating * converted exactly to its decimal representation given formatting
* rules of FloatingDecimal ( we have thus an exact decimal * rules of FloatingDecimal ( we have thus an exact decimal
* representation of the binary value). * representation of the binary value).
* *

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -187,7 +187,7 @@ final class RBCollationTables {
* with the specified comparison order. * with the specified comparison order.
* *
* @param order a collation order returned by previous or next. * @param order a collation order returned by previous or next.
* @return the maximum length of any expansion seuences ending * @return the maximum length of any expansion sequences ending
* with the specified order. * with the specified order.
* *
* @see CollationElementIterator#getMaxExpansion * @see CollationElementIterator#getMaxExpansion

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -82,7 +82,7 @@ final class RBTableBuilder {
// This array maps Unicode characters to their collation ordering // This array maps Unicode characters to their collation ordering
mapping = new UCompactIntArray(RBCollationTables.UNMAPPED); mapping = new UCompactIntArray(RBCollationTables.UNMAPPED);
// Normalize the build rules. Find occurances of all decomposed characters // Normalize the build rules. Find occurrences of all decomposed characters
// and normalize the rules before feeding into the builder. By "normalize", // and normalize the rules before feeding into the builder. By "normalize",
// we mean that all precomposed Unicode characters must be converted into // we mean that all precomposed Unicode characters must be converted into
// a base character and one or more combining characters (such as accents). // a base character and one or more combining characters (such as accents).
@ -503,7 +503,7 @@ final class RBTableBuilder {
/** /**
* Create a new entry in the expansion table that contains the orderings * Create a new entry in the expansion table that contains the orderings
* for the given characers. If anOrder is valid, it is added to the * for the given characters. If anOrder is valid, it is added to the
* beginning of the expanded list of orders. * beginning of the expanded list of orders.
*/ */
private int addExpansion(int anOrder, String expandChars) { private int addExpansion(int anOrder, String expandChars) {

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -1581,7 +1581,7 @@ public class SimpleDateFormat extends DateFormat {
} }
/* If the next tag/pattern is a <Numeric_Field> then the parser /* If the next tag/pattern is a <Numeric_Field> then the parser
* should consider the count of digits while parsing the contigous digits * should consider the count of digits while parsing the contiguous digits
* for the current tag/pattern * for the current tag/pattern
*/ */
private boolean shouldObeyCount(int tag, int count) { private boolean shouldObeyCount(int tag, int count) {

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -237,7 +237,7 @@
* This is made manageable through the use of consistent method prefixes. * This is made manageable through the use of consistent method prefixes.
* <ul> * <ul>
* <li>{@code of} - static factory method</li> * <li>{@code of} - static factory method</li>
* <li>{@code parse} - static factory method focussed on parsing</li> * <li>{@code parse} - static factory method focused on parsing</li>
* <li>{@code get} - gets the value of something</li> * <li>{@code get} - gets the value of something</li>
* <li>{@code is} - checks if something is true</li> * <li>{@code is} - checks if something is true</li>
* <li>{@code with} - the immutable equivalent of a setter</li> * <li>{@code with} - the immutable equivalent of a setter</li>

View file

@ -1040,7 +1040,7 @@ public class ArrayDeque<E> extends AbstractCollection<E>
} }
/** /**
* Nulls out slots starting at array index i, upto index end. * Nulls out slots starting at array index i, up to index end.
* Condition i == end means "empty" - nothing to do. * Condition i == end means "empty" - nothing to do.
*/ */
private static void circularClear(Object[] es, int i, int end) { private static void circularClear(Object[] es, int i, int end) {

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2005, 2021, 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -1219,7 +1219,7 @@ class JapaneseImperialCalendar extends Calendar {
} else { } else {
value = getMinimum(field); value = getMinimum(field);
CalendarDate d = jcal.getCalendarDate(Long.MIN_VALUE, getZone()); CalendarDate d = jcal.getCalendarDate(Long.MIN_VALUE, getZone());
// Use an equvalent year of d.getYear() if // Use an equivalent year of d.getYear() if
// possible. Otherwise, ignore the leap year and // possible. Otherwise, ignore the leap year and
// common year difference. // common year difference.
int y = d.getYear(); int y = d.getYear();

View file

@ -2969,7 +2969,7 @@ public abstract class ResourceBundle {
if (language.equals("zh")) { if (language.equals("zh")) {
if (region.isEmpty()) { if (region.isEmpty()) {
// Supply region(country) for users who still package Chinese // Supply region(country) for users who still package Chinese
// bundles using old convension. // bundles using old convention.
switch (script) { switch (script) {
case "Hans" -> region = "CN"; case "Hans" -> region = "CN";
case "Hant" -> region = "TW"; case "Hant" -> region = "TW";

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -2983,7 +2983,7 @@ public class TreeMap<K,V>
* potential speed-ups of using custom Spliterators versus default * potential speed-ups of using custom Spliterators versus default
* mechanics. * mechanics.
* *
* To boostrap initialization, external constructors use * To bootstrap initialization, external constructors use
* negative size estimates: -1 for ascend, -2 for descend. * negative size estimates: -1 for ascend, -2 for descend.
*/ */
static class TreeMapSpliterator<K,V> { static class TreeMapSpliterator<K,V> {

View file

@ -676,7 +676,7 @@ public class ArrayBlockingQueue<E> extends AbstractQueue<E>
} }
/** /**
* Nulls out slots starting at array index i, upto index end. * Nulls out slots starting at array index i, up to index end.
* Condition i == end means "full" - the entire array is cleared. * Condition i == end means "full" - the entire array is cleared.
*/ */
private static void circularClear(Object[] items, int i, int end) { private static void circularClear(Object[] items, int i, int end) {

View file

@ -4908,7 +4908,7 @@ loop: for(int x=0, offset=0; x<nCodePoints; x++, offset+=len) {
if (count < cmax) { if (count < cmax) {
// Let's check if we have already tried and failed // Let's check if we have already tried and failed
// at this starting position "i" in the past. // at this starting position "i" in the past.
// If yes, then just return false wihtout trying // If yes, then just return false without trying
// again, to stop the exponential backtracking. // again, to stop the exponential backtracking.
if (posIndex != -1 && if (posIndex != -1 &&
matcher.localsPos[posIndex].contains(i)) { matcher.localsPos[posIndex].contains(i)) {

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -214,7 +214,7 @@ public final class CRC32C implements Checksum {
private static int updateBytes(int crc, byte[] b, int off, int end) { private static int updateBytes(int crc, byte[] b, int off, int end) {
// Do only byte reads for arrays so short they can't be aligned // Do only byte reads for arrays so short they can't be aligned
// or if bytes are stored with a larger witdh than one byte.,% // or if bytes are stored with a larger width than one byte.,%
if (end - off >= 8 && Unsafe.ARRAY_BYTE_INDEX_SCALE == 1) { if (end - off >= 8 && Unsafe.ARRAY_BYTE_INDEX_SCALE == 1) {
// align on 8 bytes // align on 8 bytes

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1995, 2020, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1995, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -53,7 +53,7 @@ public class ZipEntry implements ZipConstants, Cloneable {
long crc = -1; // crc-32 of entry data long crc = -1; // crc-32 of entry data
long size = -1; // uncompressed size of entry data long size = -1; // uncompressed size of entry data
long csize = -1; // compressed size of entry data long csize = -1; // compressed size of entry data
boolean csizeSet = false; // Only true if csize was explicitely set by boolean csizeSet = false; // Only true if csize was explicitly set by
// a call to setCompressedSize() // a call to setCompressedSize()
int method = -1; // compression method int method = -1; // compression method
int flag = 0; // general purpose flag int flag = 0; // general purpose flag
@ -562,7 +562,7 @@ public class ZipEntry implements ZipConstants, Cloneable {
// and compressed file size fields. // and compressed file size fields.
// If invalid zip64 extra fields, simply skip. Even // If invalid zip64 extra fields, simply skip. Even
// it's rare, it's possible the entry size happens to // it's rare, it's possible the entry size happens to
// be the magic value and it "accidently" has some // be the magic value and it "accidentally" has some
// bytes in extra match the id. // bytes in extra match the id.
if (sz >= 16) { if (sz >= 16) {
size = get64(extra, off); size = get64(extra, off);

View file

@ -1632,7 +1632,7 @@ public class ZipFile implements ZipConstants, Closeable {
// 32 bit hash matches the hashed name. // 32 bit hash matches the hashed name.
while (idx != ZIP_ENDCHAIN) { while (idx != ZIP_ENDCHAIN) {
if (getEntryHash(idx) == hsh) { if (getEntryHash(idx) == hsh) {
// The CEN name must match the specfied one // The CEN name must match the specified one
int pos = getEntryPos(idx); int pos = getEntryPos(idx);
try { try {

View file

@ -700,8 +700,8 @@ public class ZipOutputStream extends DeflaterOutputStream implements ZipConstant
writeShort(45); // version needed to extract writeShort(45); // version needed to extract
writeInt(0); // number of this disk writeInt(0); // number of this disk
writeInt(0); // central directory start disk writeInt(0); // central directory start disk
writeLong(xentries.size()); // number of directory entires on disk writeLong(xentries.size()); // number of directory entries on disk
writeLong(xentries.size()); // number of directory entires writeLong(xentries.size()); // number of directory entries
writeLong(len); // length of central directory writeLong(len); // length of central directory
writeLong(off); // offset of central directory writeLong(off); // offset of central directory

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -283,7 +283,7 @@ class ZipUtils {
static final int READBLOCKSZ = 128; static final int READBLOCKSZ = 128;
/** /**
* Loads zip native library, if not already laoded * Loads zip native library, if not already loaded
*/ */
static void loadLibrary() { static void loadLibrary() {
jdk.internal.loader.BootLoader.loadLibrary("zip"); jdk.internal.loader.BootLoader.loadLibrary("zip");

View file

@ -335,7 +335,7 @@ public class CipherInputStream extends FilterInputStream {
input.close(); input.close();
// Throw away the unprocessed data and throw no crypto exceptions. // Throw away the unprocessed data and throw no crypto exceptions.
// AEAD ciphers are fully readed before closing. Any authentication // AEAD ciphers are fully read before closing. Any authentication
// exceptions would occur while reading. // exceptions would occur while reading.
if (!done) { if (!done) {
ensureCapacity(0); ensureCapacity(0);

View file

@ -213,7 +213,7 @@ public abstract class SocketFactory
/** /**
* Creates a socket and connect it to the specified remote address * Creates a socket and connect it to the specified remote address
* on the specified remote port. The socket will also be bound * on the specified remote port. The socket will also be bound
* to the local address and port suplied. The socket is configured using * to the local address and port supplied. The socket is configured using
* the socket options established for this factory. * the socket options established for this factory.
* <p> * <p>
* If there is a security manager, its <code>checkConnect</code> * If there is a security manager, its <code>checkConnect</code>

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1999, 2021, 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -129,7 +129,7 @@ public abstract class HttpsURLConnection extends HttpURLConnection {
* such as Kerberos. * such as Kerberos.
* *
* @return the server's principal. Returns an X500Principal of the * @return the server's principal. Returns an X500Principal of the
* end-entity certiticate for X509-based cipher suites, and * end-entity certificate for X509-based cipher suites, and
* KerberosPrincipal for Kerberos cipher suites. * KerberosPrincipal for Kerberos cipher suites.
* *
* @throws SSLPeerUnverifiedException if the peer was not verified * @throws SSLPeerUnverifiedException if the peer was not verified

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2014, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -389,7 +389,7 @@ public final class ImageReader implements AutoCloseable {
Node handlePackages(String name, ImageLocation loc) { Node handlePackages(String name, ImageLocation loc) {
long size = loc.getUncompressedSize(); long size = loc.getUncompressedSize();
Node n = null; Node n = null;
// Only possiblities are /packages, /packages/package/module // Only possibilities are /packages, /packages/package/module
if (name.equals("/packages")) { if (name.equals("/packages")) {
visitLocation(loc, (childloc) -> { visitLocation(loc, (childloc) -> {
findNode(childloc.getFullName()); findNode(childloc.getFullName());

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -245,7 +245,7 @@ class ExplodedImage extends SystemImage {
// initialize file system Nodes // initialize file system Nodes
private void initNodes() throws IOException { private void initNodes() throws IOException {
// same package prefix may exist in mutliple modules. This Map // same package prefix may exist in multiple modules. This Map
// is filled by walking "jdk modules" directory recursively! // is filled by walking "jdk modules" directory recursively!
Map<String, List<String>> packageToModules = new HashMap<>(); Map<String, List<String>> packageToModules = new HashMap<>();
try (DirectoryStream<Path> stream = Files.newDirectoryStream(explodedModulesDir)) { try (DirectoryStream<Path> stream = Files.newDirectoryStream(explodedModulesDir)) {

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -274,7 +274,7 @@ class JrtFileSystem extends FileSystem {
// check that the options passed are supported by (read-only) jrt file system // check that the options passed are supported by (read-only) jrt file system
static void checkOptions(Set<? extends OpenOption> options) { static void checkOptions(Set<? extends OpenOption> options) {
// check for options of null type and option is an intance of StandardOpenOption // check for options of null type and option is an instance of StandardOpenOption
for (OpenOption option : options) { for (OpenOption option : options) {
Objects.requireNonNull(option); Objects.requireNonNull(option);
if (!(option instanceof StandardOpenOption)) { if (!(option instanceof StandardOpenOption)) {

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -431,7 +431,7 @@ final class JrtPath implements Path {
return r; return r;
} }
// removes redundant slashs, replace "\" to separator "/" // removes redundant slashes, replace "\" to separator "/"
// and check for invalid characters // and check for invalid characters
private static String normalize(String path) { private static String normalize(String path) {
int len = path.length(); int len = path.length();

View file

@ -328,7 +328,7 @@ public class CDS {
if (!tempArchiveFile.renameTo(archiveFile)) { if (!tempArchiveFile.renameTo(archiveFile)) {
throw new RuntimeException("Cannot rename temp file " + tempArchiveFileName + " to archive file" + archiveFileName); throw new RuntimeException("Cannot rename temp file " + tempArchiveFileName + " to archive file" + archiveFileName);
} }
// Everyting goes well, print out the file name. // Everything goes well, print out the file name.
String archiveFilePath = new File(archiveFileName).getAbsolutePath(); String archiveFilePath = new File(archiveFileName).getAbsolutePath();
System.out.println("The process was attached by jcmd and dumped a " + (isStatic ? "static" : "dynamic") + " archive " + archiveFilePath); System.out.println("The process was attached by jcmd and dumped a " + (isStatic ? "static" : "dynamic") + " archive " + archiveFilePath);
return archiveFilePath; return archiveFilePath;

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -336,8 +336,8 @@ public class ScopedMemoryAccess {
// ByteBuffer vector access ops // ByteBuffer vector access ops
// Buffer access constants, to be initalized when required. // Buffer access constants, to be initialized when required.
// Avoids a null value for NIO_ACCESS, due to class initalization dependencies // Avoids a null value for NIO_ACCESS, due to class initialization dependencies
static final class BufferAccess { static final class BufferAccess {
// Buffer.address // Buffer.address
static final long BUFFER_ADDRESS static final long BUFFER_ADDRESS

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1999, 2021, 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -50,7 +50,7 @@ public class JarIndex {
/** /**
* The hash map that maintains mappings from * The hash map that maintains mappings from
* package/classe/resource to jar file list(s) * package/class/resource to jar file list(s)
*/ */
private final HashMap<String, List<String>> indexMap; private final HashMap<String, List<String>> indexMap;

View file

@ -1400,7 +1400,7 @@ public class RandomSupport {
/** /**
* This class overrides the stream-producing methods (such as * This class overrides the stream-producing methods (such as
* {@link RandomGenerator#ints() ints}()) in class {@link RandomGenerator} * {@link RandomGenerator#ints() ints}()) in class {@link RandomGenerator}
* to provide {@link Spliterator}-based implmentations that support * to provide {@link Spliterator}-based implementations that support
* potentially parallel execution. * potentially parallel execution.
* *
* <p> To implement a pseudorandom number generator, the programmer needs * <p> To implement a pseudorandom number generator, the programmer needs

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -62,7 +62,7 @@ import jdk.internal.org.xml.sax.helpers.DefaultHandler;
* given * given
* {@link org.xml.sax.helpers.DefaultHandler} are called.<p> * {@link org.xml.sax.helpers.DefaultHandler} are called.<p>
* *
* Implementors of this class which wrap an underlaying implementation * Implementors of this class which wrap an underlying implementation
* can consider using the {@link org.xml.sax.helpers.ParserAdapter} * can consider using the {@link org.xml.sax.helpers.ParserAdapter}
* class to initially adapt their SAX1 implementation to work under * class to initially adapt their SAX1 implementation to work under
* this revised class. * this revised class.

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -33,7 +33,7 @@ public class Attrs implements Attributes {
* Attributes string array. Each individual attribute is represented by four * Attributes string array. Each individual attribute is represented by four
* strings: namespace URL(+0), qname(+1), local name(+2), value(+3), * strings: namespace URL(+0), qname(+1), local name(+2), value(+3),
* type(+4), declared["d"] and default["D"](+5). In order to find attribute * type(+4), declared["d"] and default["D"](+5). In order to find attribute
* by the attrubute index, the attribute index MUST be multiplied by 8. The * by the attribute index, the attribute index MUST be multiplied by 8. The
* result will point to the attribute namespace URL. * result will point to the attribute namespace URL.
*/ */
/* pkg */ String[] mItems; /* pkg */ String[] mItems;

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -38,7 +38,7 @@ public class Input {
/** The entity public identifier or null. */ /** The entity public identifier or null. */
public String pubid; public String pubid;
/** The entity systen identifier or null. */ /** The entity system identifier or null. */
public String sysid; public String sysid;
/** The encoding from XML declaration or null */ /** The encoding from XML declaration or null */
public String xmlenc; public String xmlenc;

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2012, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -50,9 +50,9 @@ public abstract class Parser {
private Pair mNoNS; // there is no namespace private Pair mNoNS; // there is no namespace
private Pair mXml; // the xml namespace private Pair mXml; // the xml namespace
private Map<String, Input> mEnt; // the entities look up table private Map<String, Input> mEnt; // the entities look up table
private Map<String, Input> mPEnt; // the parmeter entities look up table private Map<String, Input> mPEnt; // the parameter entities look up table
protected boolean mIsSAlone; // xml decl standalone flag protected boolean mIsSAlone; // xml decl standalone flag
protected boolean mIsSAloneSet; // standalone is explicitely set protected boolean mIsSAloneSet; // standalone is explicitly set
protected boolean mIsNSAware; // if true - namespace aware mode protected boolean mIsNSAware; // if true - namespace aware mode
protected int mPh; // current phase of document processing protected int mPh; // current phase of document processing
protected static final int PH_BEFORE_DOC = -1; // before parsing protected static final int PH_BEFORE_DOC = -1; // before parsing
@ -216,11 +216,11 @@ public abstract class Parser {
while (i < 'A') { while (i < 'A') {
nmttyp[i++] = (byte) 0xff; nmttyp[i++] = (byte) 0xff;
} }
// skiped upper case alphabetical character are already 0 // skipped upper case alphabetical character are already 0
for (i = '['; i < 'a'; i++) { for (i = '['; i < 'a'; i++) {
nmttyp[i] = (byte) 0xff; nmttyp[i] = (byte) 0xff;
} }
// skiped lower case alphabetical character are already 0 // skipped lower case alphabetical character are already 0
for (i = '{'; i < 0x80; i++) { for (i = '{'; i < 0x80; i++) {
nmttyp[i] = (byte) 0xff; nmttyp[i] = (byte) 0xff;
} }
@ -271,7 +271,7 @@ public abstract class Parser {
mEnt = new HashMap<>(); mEnt = new HashMap<>();
mDoc = mInp; // current input is document entity mDoc = mInp; // current input is document entity
mChars = mInp.chars; // use document entity buffer mChars = mInp.chars; // use document entity buffer
mPh = PH_DOC_START; // the begining of the document mPh = PH_DOC_START; // the beginning of the document
} }
/** /**
@ -310,7 +310,7 @@ public abstract class Parser {
mPEnt = null; mPEnt = null;
mEnt = null; mEnt = null;
mDoc = null; mDoc = null;
mPh = PH_AFTER_DOC; // before documnet processing mPh = PH_AFTER_DOC; // before document processing
} }
/** /**
@ -396,7 +396,7 @@ public abstract class Parser {
mElm.name = mElm.local(); mElm.name = mElm.local();
mElm.id = (mElm.next != null) ? mElm.next.id : 0; // flags mElm.id = (mElm.next != null) ? mElm.next.id : 0; // flags
mElm.num = 0; // namespace counter mElm.num = 0; // namespace counter
// Find the list of defined attributs of the current // Find the list of defined attributes of the current
// element // element
Pair elm = find(mAttL, mElm.chars); Pair elm = find(mAttL, mElm.chars);
mElm.list = (elm != null) ? elm.list : null; mElm.list = (elm != null) ? elm.list : null;
@ -1325,7 +1325,7 @@ public abstract class Parser {
* and accumulates attributes. * and accumulates attributes.
* *
* <p><code>att.num</code> carries attribute flags where: 0x1 - attribute is * <p><code>att.num</code> carries attribute flags where: 0x1 - attribute is
* declared in DTD (attribute decalration had been read); 0x2 - attribute's * declared in DTD (attribute declaration had been read); 0x2 - attribute's
* default value is used.</p> * default value is used.</p>
* *
* @param att An object which reprecents current attribute. * @param att An object which reprecents current attribute.
@ -1596,7 +1596,7 @@ public abstract class Parser {
panic(FAULT); panic(FAULT);
} }
// This is processing instruction // This is processing instruction
if (mPh == PH_DOC_START) // the begining of the document if (mPh == PH_DOC_START) // the beginning of the document
{ {
mPh = PH_MISC_DTD; // misc before DTD mPh = PH_MISC_DTD; // misc before DTD
} }
@ -1871,7 +1871,7 @@ public abstract class Parser {
} }
/** /**
* Resoves an entity. * Resolves an entity.
* *
* This method resolves built-in and character entity references. It is also * This method resolves built-in and character entity references. It is also
* reports external entities to the application. * reports external entities to the application.
@ -2061,7 +2061,7 @@ public abstract class Parser {
} }
/** /**
* Resoves a parameter entity. * Resolves a parameter entity.
* *
* This method resolves a parameter entity references. It is also reports * This method resolves a parameter entity references. It is also reports
* external entities to the application. * external entities to the application.
@ -2238,7 +2238,7 @@ public abstract class Parser {
/** /**
* Reports a comment. * Reports a comment.
* *
* @param text The comment text starting from first charcater. * @param text The comment text starting from first character.
* @param length The number of characters in comment. * @param length The number of characters in comment.
*/ */
protected abstract void comm(char[] text, int length); protected abstract void comm(char[] text, int length);
@ -3323,7 +3323,7 @@ public abstract class Parser {
} }
/** /**
* Retrives the next character in the document. * Retrieves the next character in the document.
* *
* @return The next character in the document. * @return The next character in the document.
*/ */

View file

@ -76,7 +76,7 @@ final class ParserSAX
public ParserSAX() { public ParserSAX() {
super(); super();
// SAX feature defaut values // SAX feature default values
mFNamespaces = true; mFNamespaces = true;
mFPrefixes = false; mFPrefixes = false;
@ -558,7 +558,7 @@ final class ParserSAX
/** /**
* Reports a comment. * Reports a comment.
* *
* @param text The comment text starting from first charcater. * @param text The comment text starting from first character.
* @param length The number of characters in comment. * @param length The number of characters in comment.
*/ */
protected void comm(char[] text, int length) { protected void comm(char[] text, int length) {

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -137,7 +137,7 @@ public class XMLWriter {
* @param output The output stream * @param output The output stream
* @param encoding The encoding * @param encoding The encoding
* @return A suitable writer * @return A suitable writer
* @throws UnsupportedEncodingException There is no convertor to support * @throws UnsupportedEncodingException There is no converter to support
* this encoding * this encoding
*/ */
private Writer getWriter(OutputStream output, String encoding, Charset cs) private Writer getWriter(OutputStream output, String encoding, Charset cs)

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2007, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -431,7 +431,7 @@ public class BytecodeName {
return true; return true;
} }
private static String quoteDisplay(String s) { private static String quoteDisplay(String s) {
// TO DO: Replace wierd characters in s by C-style escapes. // TO DO: Replace weird characters in s by C-style escapes.
return "'"+s.replaceAll("['\\\\]", "\\\\$0")+"'"; return "'"+s.replaceAll("['\\\\]", "\\\\$0")+"'";
} }

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2007, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2007, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -242,7 +242,7 @@ public final class LauncherHelper {
ostream.print("\\n "); ostream.print("\\n ");
break; break;
default: default:
// print any bizzare line separators in hex, but really // print any bizarre line separators in hex, but really
// shouldn't happen. // shouldn't happen.
ostream.printf("0x%02X", b & 0xff); ostream.printf("0x%02X", b & 0xff);
break; break;
@ -505,7 +505,7 @@ public final class LauncherHelper {
} }
/** /**
* Appends the vm synoym message to the header, already created. * Appends the vm synonym message to the header, already created.
* initHelpSystem must be called before using this method. * initHelpSystem must be called before using this method.
*/ */
static void appendVmSynonymMessage(String vm1, String vm2) { static void appendVmSynonymMessage(String vm1, String vm2) {

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2009, 2013, 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -59,7 +59,7 @@ import java.util.Iterator;
* <p><b>Error reporting:</b> There are, mostly, two families of errors that * <p><b>Error reporting:</b> There are, mostly, two families of errors that
* can occur during an FTP session. The first kind are the network related issues * can occur during an FTP session. The first kind are the network related issues
* like a connection reset, and they are usually fatal to the session, meaning, * like a connection reset, and they are usually fatal to the session, meaning,
* in all likelyhood the connection to the server has been lost and the session * in all likelihood the connection to the server has been lost and the session
* should be restarted from scratch. These errors are reported by throwing an * should be restarted from scratch. These errors are reported by throwing an
* {@link IOException}. The second kind are the errors reported by the FTP server, * {@link IOException}. The second kind are the errors reported by the FTP server,
* like when trying to download a non-existing file for example. These errors * like when trying to download a non-existing file for example. These errors
@ -350,7 +350,7 @@ public abstract class FtpClient implements java.io.Closeable {
* Retrieves a file from the ftp server and writes its content to the specified * Retrieves a file from the ftp server and writes its content to the specified
* {@code OutputStream}. * {@code OutputStream}.
* <p>If the restart offset was set, then a {@code REST} command will be * <p>If the restart offset was set, then a {@code REST} command will be
* sent before the {@code RETR} in order to restart the tranfer from the specified * sent before the {@code RETR} in order to restart the transfer from the specified
* offset.</p> * offset.</p>
* <p>The {@code OutputStream} is not closed by this method at the end * <p>The {@code OutputStream} is not closed by this method at the end
* of the transfer. </p> * of the transfer. </p>
@ -358,7 +358,7 @@ public abstract class FtpClient implements java.io.Closeable {
* is thrown.</p> * is thrown.</p>
* *
* @param name a {@code String} containing the name of the file to * @param name a {@code String} containing the name of the file to
* retreive from the server. * retrieve from the server.
* @param local the {@code OutputStream} the file should be written to. * @param local the {@code OutputStream} the file should be written to.
* @return this FtpClient * @return this FtpClient
* @throws IOException if the transfer fails. * @throws IOException if the transfer fails.
@ -373,7 +373,7 @@ public abstract class FtpClient implements java.io.Closeable {
* {@link #completePending()} <b>has</b> to be called once the application * {@link #completePending()} <b>has</b> to be called once the application
* is done reading from the returned stream. * is done reading from the returned stream.
* <p>If the restart offset was set, then a {@code REST} command will be * <p>If the restart offset was set, then a {@code REST} command will be
* sent before the {@code RETR} in order to restart the tranfer from the specified * sent before the {@code RETR} in order to restart the transfer from the specified
* offset.</p> * offset.</p>
* *
* @param name the name of the remote file * @param name the name of the remote file
@ -616,7 +616,7 @@ public abstract class FtpClient implements java.io.Closeable {
* <p>This method will actually block reading on the command channel for a * <p>This method will actually block reading on the command channel for a
* notification from the server that the command is finished. Such a * notification from the server that the command is finished. Such a
* notification often carries extra information concerning the completion * notification often carries extra information concerning the completion
* of the pending action (e.g. number of bytes transfered).</p> * of the pending action (e.g. number of bytes transferred).</p>
* <p>Note that this will return immediately if no command or action * <p>Note that this will return immediately if no command or action
* is pending</p> * is pending</p>
* <p>It should be also noted that most methods issuing commands to the ftp * <p>It should be also noted that most methods issuing commands to the ftp
@ -783,7 +783,7 @@ public abstract class FtpClient implements java.io.Closeable {
* is finished iterating through the files. * is finished iterating through the files.
* *
* @param path the pathname of the directory to list or {@code null} * @param path the pathname of the directory to list or {@code null}
* for the current working directoty. * for the current working directory.
* @return an {@code Iterator} of files or {@code null} if the * @return an {@code Iterator} of files or {@code null} if the
* command failed. * command failed.
* @throws IOException if an error occurred during the transmission * @throws IOException if an error occurred during the transmission
@ -831,7 +831,7 @@ public abstract class FtpClient implements java.io.Closeable {
/** /**
* Returns, when available, the size of the latest started transfer. * Returns, when available, the size of the latest started transfer.
* This is retreived by parsing the response string received as an initial * This is retrieved by parsing the response string received as an initial
* response to a {@code RETR} or similar request. * response to a {@code RETR} or similar request.
* *
* @return the size of the latest transfer or -1 if either there was no * @return the size of the latest transfer or -1 if either there was no
@ -840,12 +840,12 @@ public abstract class FtpClient implements java.io.Closeable {
public abstract long getLastTransferSize(); public abstract long getLastTransferSize();
/** /**
* Returns, when available, the remote name of the last transfered file. * Returns, when available, the remote name of the last transferred file.
* This is mainly useful for "put" operation when the unique flag was * This is mainly useful for "put" operation when the unique flag was
* set since it allows to recover the unique file name created on the * set since it allows to recover the unique file name created on the
* server which may be different from the one submitted with the command. * server which may be different from the one submitted with the command.
* *
* @return the name the latest transfered file remote name, or * @return the name the latest transferred file remote name, or
* {@code null} if that information is unavailable. * {@code null} if that information is unavailable.
*/ */
public abstract String getLastFileName(); public abstract String getLastFileName();

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1994, 2019, 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,7 +28,7 @@ package sun.net.ftp;
* Thrown to indicate that the FTP server reported an error. * Thrown to indicate that the FTP server reported an error.
* For instance that the requested file doesn't exist or * For instance that the requested file doesn't exist or
* that a command isn't supported. * that a command isn't supported.
* <p>The specific error code can be retreived with {@link #getReplyCode() }.</p> * <p>The specific error code can be retrieved with {@link #getReplyCode() }.</p>
* @author Jonathan Payne * @author Jonathan Payne
*/ */
public class FtpProtocolException extends Exception { public class FtpProtocolException extends Exception {
@ -38,7 +38,7 @@ public class FtpProtocolException extends Exception {
/** /**
* Constructs a new {@code FtpProtocolException} from the * Constructs a new {@code FtpProtocolException} from the
* specified detail message. The reply code is set to unknow error. * specified detail message. The reply code is set to unknown error.
* *
* @param detail the detail message. * @param detail the detail message.
*/ */

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2009, 2021, 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -600,7 +600,7 @@ public class FtpClient extends sun.net.ftp.FtpClient {
// the format will be : // the format will be :
// 229 Entering Extended PASSIVE Mode (|||58210|) // 229 Entering Extended PASSIVE Mode (|||58210|)
// //
// So we'll use the regular expresions package to parse the output. // So we'll use the regular expressions package to parse the output.
if (epsvPat == null) { if (epsvPat == null) {
epsvPat = Pattern.compile("^229 .* \\(\\|\\|\\|(\\d+)\\|\\)"); epsvPat = Pattern.compile("^229 .* \\(\\|\\|\\|(\\d+)\\|\\)");
@ -1300,13 +1300,13 @@ public class FtpClient extends sun.net.ftp.FtpClient {
* Retrieves a file from the ftp server and writes it to the specified * Retrieves a file from the ftp server and writes it to the specified
* <code>OutputStream</code>. * <code>OutputStream</code>.
* If the restart offset was set, then a <code>REST</code> command will be * If the restart offset was set, then a <code>REST</code> command will be
* sent before the RETR in order to restart the tranfer from the specified * sent before the RETR in order to restart the transfer from the specified
* offset. * offset.
* The <code>OutputStream</code> is not closed by this method at the end * The <code>OutputStream</code> is not closed by this method at the end
* of the transfer. * of the transfer.
* *
* @param name a {@code String} containing the name of the file to * @param name a {@code String} containing the name of the file to
* retreive from the server. * retrieve from the server.
* @param local the <code>OutputStream</code> the file should be written to. * @param local the <code>OutputStream</code> the file should be written to.
* @throws IOException if the transfer fails. * @throws IOException if the transfer fails.
*/ */
@ -1648,7 +1648,7 @@ public class FtpClient extends sun.net.ftp.FtpClient {
* <p>This method will actually block reading on the command channel for a * <p>This method will actually block reading on the command channel for a
* notification from the server that the command is finished. Such a * notification from the server that the command is finished. Such a
* notification often carries extra information concerning the completion * notification often carries extra information concerning the completion
* of the pending action (e.g. number of bytes transfered).</p> * of the pending action (e.g. number of bytes transferred).</p>
* <p>Note that this will return true immediately if no command or action * <p>Note that this will return true immediately if no command or action
* is pending</p> * is pending</p>
* <p>It should be also noted that most methods issuing commands to the ftp * <p>It should be also noted that most methods issuing commands to the ftp
@ -1926,7 +1926,7 @@ public class FtpClient extends sun.net.ftp.FtpClient {
* is finished iterating through the files. * is finished iterating through the files.
* *
* @param path the pathname of the directory to list or <code>null</code> * @param path the pathname of the directory to list or <code>null</code>
* for the current working directoty. * for the current working directory.
* @return a <code>Iterator</code> of files or <code>null</code> if the * @return a <code>Iterator</code> of files or <code>null</code> if the
* command failed. * command failed.
* @throws IOException if an error occurred during the transmission * @throws IOException if an error occurred during the transmission
@ -1976,7 +1976,7 @@ public class FtpClient extends sun.net.ftp.FtpClient {
* Attempts to use Kerberos GSSAPI as an authentication mechanism with the * Attempts to use Kerberos GSSAPI as an authentication mechanism with the
* ftp server. This will issue an <code>AUTH GSSAPI</code> command, and if * ftp server. This will issue an <code>AUTH GSSAPI</code> command, and if
* it is accepted by the server, will followup with <code>ADAT</code> * it is accepted by the server, will followup with <code>ADAT</code>
* command to exchange the various tokens until authentification is * command to exchange the various tokens until authentication is
* successful. This conforms to Appendix I of RFC 2228. * successful. This conforms to Appendix I of RFC 2228.
* *
* @return <code>true</code> if authentication was successful. * @return <code>true</code> if authentication was successful.
@ -2058,7 +2058,7 @@ public class FtpClient extends sun.net.ftp.FtpClient {
/** /**
* Returns, when available, the size of the latest started transfer. * Returns, when available, the size of the latest started transfer.
* This is retreived by parsing the response string received as an initial * This is retrieved by parsing the response string received as an initial
* response to a RETR or similar request. * response to a RETR or similar request.
* *
* @return the size of the latest transfer or -1 if either there was no * @return the size of the latest transfer or -1 if either there was no
@ -2069,12 +2069,12 @@ public class FtpClient extends sun.net.ftp.FtpClient {
} }
/** /**
* Returns, when available, the remote name of the last transfered file. * Returns, when available, the remote name of the last transferred file.
* This is mainly useful for "put" operation when the unique flag was * This is mainly useful for "put" operation when the unique flag was
* set since it allows to recover the unique file name created on the * set since it allows to recover the unique file name created on the
* server which may be different from the one submitted with the command. * server which may be different from the one submitted with the command.
* *
* @return the name the latest transfered file remote name, or * @return the name the latest transferred file remote name, or
* <code>null</code> if that information is unavailable. * <code>null</code> if that information is unavailable.
*/ */
public String getLastFileName() { public String getLastFileName() {
@ -2136,7 +2136,7 @@ public class FtpClient extends sun.net.ftp.FtpClient {
/** /**
* Sends a <code>CCC</code> command followed by a <code>PROT C</code> * Sends a <code>CCC</code> command followed by a <code>PROT C</code>
* command to the server terminating an encrypted session and reverting * command to the server terminating an encrypted session and reverting
* back to a non crypted transmission. * back to a non encrypted transmission.
* *
* @return <code>true</code> if the operation was successful. * @return <code>true</code> if the operation was successful.
* @throws IOException if an error occurred during transmission. * @throws IOException if an error occurred during transmission.

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -66,7 +66,7 @@ public class DefaultProxySelector extends ProxySelector {
* listed in order of priority. * listed in order of priority.
* Example: * Example:
* {"ftp", "ftp.proxy", "ftpProxy", "proxy", "socksProxy"}, * {"ftp", "ftp.proxy", "ftpProxy", "proxy", "socksProxy"},
* means for FTP we try in that oder: * means for FTP we try in that order:
* + ftp.proxyHost & ftp.proxyPort * + ftp.proxyHost & ftp.proxyPort
* + ftpProxyHost & ftpProxyPort * + ftpProxyHost & ftpProxyPort
* + proxyHost & proxyPort * + proxyHost & proxyPort
@ -124,7 +124,7 @@ public class DefaultProxySelector extends ProxySelector {
static class NonProxyInfo { static class NonProxyInfo {
// Default value for nonProxyHosts, this provides backward compatibility // Default value for nonProxyHosts, this provides backward compatibility
// by excluding localhost and its litteral notations. // by excluding localhost and its literal notations.
static final String defStringVal = "localhost|127.*|[::1]|0.0.0.0|[::0]"; static final String defStringVal = "localhost|127.*|[::1]|0.0.0.0|[::0]";
String hostsSource; String hostsSource;

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2009, 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -63,7 +63,7 @@ public class URLUtil {
int port = url.getPort(); int port = url.getPort();
if (port == -1) { if (port == -1) {
/* if no port is specificed then use the protocols /* if no port is specified then use the protocols
* default, if there is one */ * default, if there is one */
port = url.getDefaultPort(); port = url.getDefaultPort();
} }

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -35,7 +35,7 @@ public class MeteredStream extends FilterInputStream {
// Instance variables. // Instance variables.
/* if expected != -1, after we've read >= expected, we're "closed" and return -1 /* 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 boolean closed = false;
protected long expected; protected long expected;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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('.'); 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('/'));
i = Math.max(i, fname.lastIndexOf('?')); i = Math.max(i, fname.lastIndexOf('?'));

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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 * Ensures there is <code>size</code> bytes available in
* <code>rawData</code>. This requires that we either * <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. * or allocate a large buffer with sufficient space available.
*/ */
private void ensureRawAvailable(int size) { private void ensureRawAvailable(int size) {

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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 /* We're very particular here about what our InputStream to the server
* looks like for reasons that are apparent if you can decipher the * 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. * superclass.
*/ */
@Override @Override

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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 * Errs on the side of caution (leave connections idle for a relatively
* short time). * short time).
*/ */

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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); && skip(Math.min(nskip, available())) > 0L);
} else if (expected <= KeepAliveStreamCleaner.MAX_DATA_REMAINING && !hurried) { } else if (expected <= KeepAliveStreamCleaner.MAX_DATA_REMAINING && !hurried) {
//put this KeepAliveStream on the queue so that the data remaining //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)); queueForCleanup(new KeepAliveCleanerEntry(this, hc));
} else { } else {
hc.closeServer(); hc.closeServer();

View file

@ -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. * "get" (or "dir") command to the ftp server.
* *
* @return the {@code InputStream} to the connection. * @return the {@code InputStream} to the connection.
* *
* @throws IOException if already opened for output * @throws IOException if already opened for output
* @throws FtpProtocolException if errors occur during the transfert. * @throws FtpProtocolException if errors occur during the transfer.
*/ */
@Override @Override
public InputStream getInputStream() throws IOException { public InputStream getInputStream() throws IOException {
@ -543,7 +543,7 @@ public class FtpURLConnection extends URLConnection {
* *
* @throws IOException if already opened for input or the URL * @throws IOException if already opened for input or the URL
* points to a directory * points to a directory
* @throws FtpProtocolException if errors occur during the transfert. * @throws FtpProtocolException if errors occur during the transfer.
*/ */
@Override @Override
public OutputStream getOutputStream() throws IOException { public OutputStream getOutputStream() throws IOException {
@ -553,7 +553,7 @@ public class FtpURLConnection extends URLConnection {
if (http != null) { if (http != null) {
OutputStream out = http.getOutputStream(); OutputStream out = http.getOutputStream();
// getInputStream() is neccessary to force a writeRequests() // getInputStream() is necessary to force a writeRequests()
// on the http client. // on the http client.
http.getInputStream(); http.getInputStream();
return out; return out;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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 algorithm = p.findValue("algorithm");
String digestName = algorithm; String digestName = algorithm;
if (algorithm == null || algorithm.isEmpty()) { if (algorithm == null || algorithm.isEmpty()) {
algorithm = "MD5"; // The default, accoriding to rfc2069 algorithm = "MD5"; // The default, according to rfc2069
digestName = "MD5"; digestName = "MD5";
} else { } else {
algorithm = algorithm.toUpperCase(Locale.ROOT); algorithm = algorithm.toUpperCase(Locale.ROOT);

View file

@ -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 * given PrintStream
*/ */
private void writeRequests() throws IOException { 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 // some flags should be reset to its initialized form so that
// even after a redirect the necessary checks can still be // even after a redirect the necessary checks can still be
// preformed. // performed.
inNegotiate = false; inNegotiate = false;
inNegotiateProxy = 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 * can be considered an approximation in that we may close a
* different idle connection to that used by the request. * different idle connection to that used by the request.
* Additionally it's possible that we close two connections * 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 * hurried) - the second, another idle connection to the
* same server. The is okay because "disconnect" is an * same server. The is okay because "disconnect" is an
* indication that the application doesn't intend to access * indication that the application doesn't intend to access
@ -3112,7 +3112,7 @@ public class HttpURLConnection extends java.net.HttpURLConnection {
} else { } 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 // should not try to resend the request no matter what stage
// of the connection we are in. // of the connection we are in.
http.setDoNotRetry(true); http.setDoNotRetry(true);

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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 * Proxy class for loading NTLMAuthentication, so as to remove static
* dependancy. * dependency.
*/ */
class NTLMAuthenticationProxy { class NTLMAuthenticationProxy {
private static Method supportsTA; private static Method supportsTA;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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 @SuppressWarnings("serial") // Not statically typed as Serializable
private final HttpCallerInfo hci; 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. // hosts. The key for both maps is the host name.
// <code>supported</code> is set when isSupported is checked, // <code>supported</code> is set when isSupported is checked,
// if it's true, a cached Negotiator is put into <code>cache</code>. // 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 if the HttpCallerInfo supports Negotiate protocol. In order to
* find out yes or no, an initialization of a Negotiator object against it * 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> * hostname at a success try.<br>
* *
* If this method is called for the second time on an HttpCallerInfo with * If this method is called for the second time on an HttpCallerInfo with

View file

@ -563,13 +563,13 @@ final class HttpsClient extends HttpClient
if (isDefaultHostnameVerifier) { if (isDefaultHostnameVerifier) {
// If the HNV is the default from HttpsURLConnection, we // If the HNV is the default from HttpsURLConnection, we
// will do the spoof checks in SSLSocket. // will do the spoof checks in SSLSocket.
SSLParameters paramaters = s.getSSLParameters(); SSLParameters parameters = s.getSSLParameters();
paramaters.setEndpointIdentificationAlgorithm("HTTPS"); parameters.setEndpointIdentificationAlgorithm("HTTPS");
// host has been set previously for SSLSocketImpl // host has been set previously for SSLSocketImpl
if (!(s instanceof 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; needToCheckSpoofing = false;
} }

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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 { try {
connect(); connect();
if (jarEntry == null) { if (jarEntry == null) {
/* if the URL referes to an archive */ /* if the URL refers to an archive */
result = jarFileURLConnection.getContentLengthLong(); result = jarFileURLConnection.getContentLengthLong();
} else { } else {
/* if the URL referes to an archive entry */ /* if the URL refers to an archive entry */
result = getJarEntry().getSize(); result = getJarEntry().getSize();
} }
} catch (IOException e) { } catch (IOException e) {
@ -365,7 +365,7 @@ public class JarURLConnection extends java.net.JarURLConnection {
* Returns the default value of a <code>URLConnection</code>'s * Returns the default value of a <code>URLConnection</code>'s
* <code>useCaches</code> flag. * <code>useCaches</code> flag.
* <p> * <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. This flag applies to the next, and all following
* URLConnections that are created. * URLConnections that are created.
* *

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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. * package if plugin is running.
*/ */
public static void setCallBack(URLJarFileCallBack cb) public static void setCallBack(URLJarFileCallBack cb)

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -199,7 +199,7 @@ class SocketChannelImpl
* Checks that the channel is open and connected. * Checks that the channel is open and connected.
* *
* @apiNote This method uses the "state" field to check if the channel is * @apiNote This method uses the "state" field to check if the channel is
* open. It should never be used in conjuncion with isOpen or ensureOpen * open. It should never be used in conjunction with isOpen or ensureOpen
* as these methods check AbstractInterruptibleChannel's closed field - that * as these methods check AbstractInterruptibleChannel's closed field - that
* field is set before implCloseSelectableChannel is called and so before * field is set before implCloseSelectableChannel is called and so before
* the state is changed. * the state is changed.

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2008, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2008, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -47,7 +47,7 @@ public class ThreadPool {
// indicates if thread pool is fixed size // indicates if thread pool is fixed size
private final boolean isFixed; private final boolean isFixed;
// indicates the pool size (for a fixed thread pool configuratin this is // indicates the pool size (for a fixed thread pool configuration this is
// the maximum pool size; for other thread pools it is the initial size) // the maximum pool size; for other thread pools it is the initial size)
private final int poolSize; private final int poolSize;

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2008, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -64,7 +64,7 @@ abstract class AbstractWatchService implements WatchService {
*/ */
abstract WatchKey register(Path path, abstract WatchKey register(Path path,
WatchEvent.Kind<?>[] events, WatchEvent.Kind<?>[] events,
WatchEvent.Modifier... modifers) WatchEvent.Modifier... modifiers)
throws IOException; throws IOException;
// used by AbstractWatchKey to enqueue key // used by AbstractWatchKey to enqueue key

View file

@ -569,7 +569,7 @@ class AnnotationInvocationHandler implements InvocationHandler, Serializable {
* java.lang.annotation.Annotation." * java.lang.annotation.Annotation."
* *
* The methods in Object or Annotation meeting the other * The methods in Object or Annotation meeting the other
* criteria (no arguments, contrained return type, etc.) * criteria (no arguments, constrained return type, etc.)
* above are: * above are:
* *
* String toString() * String toString()

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -106,7 +106,7 @@ public class GetInstance {
/** /**
* Return a List of all the available Services that implement * Return a List of all the available Services that implement
* (type, algorithm). Note that the list is initialized lazily * (type, algorithm). Note that the list is initialized lazily
* and Provider loading and lookup is only trigered when * and Provider loading and lookup is only triggered when
* necessary. * necessary.
*/ */
public static List<Service> getServices(String type, String algorithm) { public static List<Service> getServices(String type, String algorithm) {

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -59,7 +59,7 @@ public class ContentInfo {
public static ObjectIdentifier OLD_DATA_OID = public static ObjectIdentifier OLD_DATA_OID =
ObjectIdentifier.of(KnownOIDs.JDK_OLD_Data); ObjectIdentifier.of(KnownOIDs.JDK_OLD_Data);
// The ASN.1 systax for the Netscape Certificate Sequence data type is // The ASN.1 syntax for the Netscape Certificate Sequence data type is
// defined at: // defined at:
// http://wp.netscape.com/eng/security/comm4-cert-download.html // http://wp.netscape.com/eng/security/comm4-cert-download.html
public static ObjectIdentifier NETSCAPE_CERT_SEQUENCE_OID = public static ObjectIdentifier NETSCAPE_CERT_SEQUENCE_OID =

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -58,7 +58,7 @@ public class PKCS9Attributes {
private final byte[] derEncoding; private final byte[] derEncoding;
/* /*
* Contols how attributes, which are not recognized by the PKCS9Attribute * Controls how attributes, which are not recognized by the PKCS9Attribute
* class, are handled during parsing. * class, are handled during parsing.
*/ */
private boolean ignoreUnsupportedAttributes = false; private boolean ignoreUnsupportedAttributes = false;

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -93,7 +93,7 @@ public class PKCS10 {
* *
* @param publicKey the public key that should be placed * @param publicKey the public key that should be placed
* into the certificate generated by the CA. * into the certificate generated by the CA.
* @param attributes additonal set of PKCS10 attributes requested * @param attributes additional set of PKCS10 attributes requested
* for in the certificate. * for in the certificate.
*/ */
public PKCS10(PublicKey publicKey, PKCS10Attributes attributes) { public PKCS10(PublicKey publicKey, PKCS10Attributes attributes) {

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997, 2011, 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -34,7 +34,7 @@ import sun.security.util.*;
/** /**
* Represent a PKCS#10 Attribute. * Represent a PKCS#10 Attribute.
* *
* <p>Attributes are additonal information which can be inserted in a PKCS#10 * <p>Attributes are additional information which can be inserted in a PKCS#10
* certificate request. For example a "Driving License Certificate" could have * certificate request. For example a "Driving License Certificate" could have
* the driving license number as an attribute. * the driving license number as an attribute.
* *

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -591,7 +591,7 @@ public abstract class AbstractDrbg {
* Returns the current configuration as a {@link DrbgParameters.Instantiation} * Returns the current configuration as a {@link DrbgParameters.Instantiation}
* object. * object.
* *
* @return the curent configuration * @return the current configuration
*/ */
protected SecureRandomParameters engineGetParameters() { protected SecureRandomParameters engineGetParameters() {
// Or read from variable. // Or read from variable.

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -636,7 +636,7 @@ public class PolicyFile extends java.security.Policy {
pe.add(new PropertyPermission("java.vm.name", pe.add(new PropertyPermission("java.vm.name",
SecurityConstants.PROPERTY_READ_ACTION)); SecurityConstants.PROPERTY_READ_ACTION));
// No need to sync because noone has access to newInfo yet // No need to sync because no one has access to newInfo yet
newInfo.policyEntries.add(pe); newInfo.policyEntries.add(pe);
return null; return null;
@ -789,7 +789,7 @@ public class PolicyFile extends java.security.Policy {
} }
} }
// No need to sync because noone has access to newInfo yet // No need to sync because no one has access to newInfo yet
newInfo.policyEntries.add(entry); newInfo.policyEntries.add(entry);
} catch (Exception e) { } catch (Exception e) {
Object[] source = {e.toString()}; Object[] source = {e.toString()};

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -46,7 +46,7 @@ package sun.security.provider;
* <p> * <p>
* These values are gathered in the background by a daemon thread * These values are gathered in the background by a daemon thread
* thus allowing the system to continue performing it's different * thus allowing the system to continue performing it's different
* activites, which in turn add entropy to the random seed. * activities, which in turn add entropy to the random seed.
* <p> * <p>
* The class also gathers miscellaneous system information, some * The class also gathers miscellaneous system information, some
* machine dependent, some not. This information is then hashed together * machine dependent, some not. This information is then hashed together

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -125,7 +125,7 @@ public class AdjacencyList {
// Each time this method is called, we're examining a new list // Each time this method is called, we're examining a new list
// from the global list. So, we have to start by getting the list // from the global list. So, we have to start by getting the list
// that contains the set of Vertexes we're considering. // that contains the set of vertices we're considering.
List<Vertex> l = theList.get(index); List<Vertex> l = theList.get(index);
// we're interested in the case where all indexes are -1... // we're interested in the case where all indexes are -1...

Some files were not shown because too many files have changed in this diff Show more