Skip to content

Commit

Permalink
8285485: Fix typos in corelibs
Browse files Browse the repository at this point in the history
Reviewed-by: jpai, sundar, naoto, lancea
  • Loading branch information
magicus committed May 17, 2022
1 parent d8455a0 commit e68024c
Show file tree
Hide file tree
Showing 101 changed files with 295 additions and 295 deletions.
Original file line number Diff line number Diff line change
@@ -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.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -811,8 +811,8 @@ private Allocate(long size, long alignment) {
this.alignment = alignment;
}

private static MemorySegment allocateBuffer(long size, long allignment, Context context) {
return context.allocator().allocate(size, allignment);
private static MemorySegment allocateBuffer(long size, long alignment, Context context) {
return context.allocator().allocate(size, alignment);
}

public long size() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public class LogManager {
// be able to see a partially constructed 'props' object.
// (seeing a partially constructed 'props' object can result in
// NPE being thrown in Hashtable.get(), because it leaves the door
// open for props.getProperties() to be called before the construcor
// open for props.getProperties() to be called before the constructor
// of Hashtable is actually completed).
private volatile Properties props = new Properties();
private static final Level defaultLevel = Level.INFO;
Expand Down
4 changes: 2 additions & 2 deletions src/java.logging/share/classes/java/util/logging/Logger.java
Original file line number Diff line number Diff line change
@@ -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.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -2511,7 +2511,7 @@ private LoggerBundle getEffectiveLoggerBundle() {
return lb;
} else if (b != null) {
// either lb.userBundle is null or getResourceBundle() is
// overriden
// overridden
final String rbName = getResourceBundleName();
return LoggerBundle.get(rbName, b);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2020, 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.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -175,7 +175,7 @@ public String format(LogRecord record) {
// date field, using the ISO_INSTANT formatter.
DateTimeFormatter.ISO_INSTANT.formatTo(instant, sb);
} else {
// If useInstant is false - we will keep the 'old' formating
// If useInstant is false - we will keep the 'old' formatting
appendISO8601(sb, instant.toEpochMilli());
}
sb.append("</date>\n");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 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.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -43,7 +43,7 @@
*/
public interface PoolCallback {
/**
* Releases a useable connection back to the pool.
* Releases a usable connection back to the pool.
*
* @param conn The connection to release.
* @return true if the connection released; false if the connection
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -31,7 +31,7 @@
/**
* Direct subclasses of AtomicDirContext must provide implementations for
* the abstract a_ DirContext methods, and override the a_ Context methods
* (which are no longer abstract because they have been overriden by
* (which are no longer abstract because they have been overridden by
* PartialCompositeDirContext with dummy implementations).
*
* If the subclass implements the notion of implicit nns,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -30,7 +30,7 @@

/* Direct subclasses of ComponentDirContext must provide implementations for
* the abstract c_ DirContext methods, and override the c_ Context methods
* (which are no longer abstract because they have been overriden by
* (which are no longer abstract because they have been overridden by
* AtomicContext, the direct superclass of PartialDSCompositeContext).
*
* If the subclass is supports implicit nns, it must override all the
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand All @@ -25,7 +25,7 @@

/**
* Given an enumeration of candidates, check whether each
* item in enumeration satifies the given filter.
* item in enumeration satisfies the given filter.
* Each item is a Binding and the following is used to get its
* attributes for used by the filter:
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1999, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -82,7 +82,7 @@ public boolean check(Attributes targetAttrs) throws NamingException {
* Utility routines used by member classes
*/

// does some pre-processing on the string to make it look exactly lik
// does some pre-processing on the string to make it look exactly like
// what the parser expects. This only needs to be called once.
protected void normalizeFilter() {
skipWhiteSpace(); // get rid of any leading whitespaces
Expand Down Expand Up @@ -400,7 +400,7 @@ private boolean substringMatch(String proto, String value) {
!value.toLowerCase(Locale.ENGLISH).startsWith(
subStrs.nextToken().toLowerCase(Locale.ENGLISH))) {
if(debug) {
System.out.println("faild initial test");
System.out.println("failed initial test");
}
return false;
}
Expand All @@ -421,7 +421,7 @@ private boolean substringMatch(String proto, String value) {
// do we need to end with the last token?
if(proto.charAt(proto.length() - 1) != WILDCARD_TOKEN &&
currentPos != value.length() ) {
if(debug) {System.out.println("faild final test");}
if(debug) {System.out.println("failed final test");}
return false;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -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.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -76,7 +76,7 @@ public class BasicAttributes implements Attributes {
private boolean ignoreCase = false;

// The 'key' in attrs is stored in the 'right case'.
// If ignoreCase is true, key is aways lowercase.
// If ignoreCase is true, key is always lowercase.
// If ignoreCase is false, key is stored as supplied by put().
// %%% Not declared "private" due to bug 4064984.
transient Hashtable<String,Attribute> attrs = new Hashtable<>(11);
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -776,7 +776,7 @@ protected String[] keysSpi() throws BackingStoreException{

/**
* Implements {@code AbstractPreferences} {@code childrenNamesSpi()} method.
* Calls Windows registry to retrive children of this node.
* Calls Windows registry to retrieve children of this node.
* Throws a BackingStoreException and logs a warning message,
* if Windows registry is not available.
*/
Expand Down
4 changes: 2 additions & 2 deletions src/java.rmi/share/classes/java/rmi/MarshalledObject.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -224,7 +224,7 @@ public boolean equals(Object obj) {
if (objBytes.length != other.objBytes.length)
return false;

//!! There is talk about adding an array comparision method
//!! There is talk about adding an array comparison method
//!! at 1.2 -- if so, this should be rewritten. -arnold
for (int i = 0; i < objBytes.length; ++i) {
if (objBytes[i] != other.objBytes[i])
Expand Down
4 changes: 2 additions & 2 deletions src/java.rmi/share/classes/java/rmi/server/LoaderHandler.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -70,7 +70,7 @@ Class<?> loadClass(String name)
* @param name the name of the class to load
* @return the <code>Class</code> object representing the loaded class
* @throws MalformedURLException
* if the <code>codebase</code> paramater
* if the <code>codebase</code> parameter
* contains an invalid URL
* @throws ClassNotFoundException
* if a definition for the class could not
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1996, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -324,7 +324,7 @@ public static Class<?> loadProxyClass(String codebase, String[] interfaces,
* {@link RMIClassLoaderSpi#getClassLoader(String)} method
* of the provider instance, passing <code>codebase</code> as the argument.
*
* <p>If there is a security manger, its <code>checkPermission</code>
* <p>If there is a security manager, its <code>checkPermission</code>
* method will be invoked with a
* <code>RuntimePermission("getClassLoader")</code> permission;
* this could result in a <code>SecurityException</code>.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2020, 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.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -151,7 +151,7 @@ public abstract Class<?> loadProxyClass(String codebase,
* Returns a class loader that loads classes from the given codebase
* URL path.
*
* <p>If there is a security manger, its <code>checkPermission</code>
* <p>If there is a security manager, its <code>checkPermission</code>
* method will be invoked with a
* <code>RuntimePermission("getClassLoader")</code> permission;
* this could result in a <code>SecurityException</code>.
Expand Down
8 changes: 4 additions & 4 deletions src/java.rmi/share/classes/sun/rmi/log/LogHandler.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2001, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -33,8 +33,8 @@
* A LogHandler represents snapshots and update records as serializable
* objects.
*
* This implementation does not know how to create an initial snaphot or
* apply an update to a snapshot. The client must specifiy these methods
* This implementation does not know how to create an initial snapshot or
* apply an update to a snapshot. The client must specify these methods
* via a subclass.
*
* @see ReliableLog
Expand All @@ -61,7 +61,7 @@ public LogHandler() {}

/**
* Writes the snapshot object to a stream. This callback is
* invoked when the client calls the snaphot method of ReliableLog.
* invoked when the client calls the snapshot method of ReliableLog.
* @param out the output stream
* @param value the snapshot
* @exception Exception can raise any exception
Expand Down
6 changes: 3 additions & 3 deletions src/java.rmi/share/classes/sun/rmi/server/LoaderHandler.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1996, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -710,7 +710,7 @@ private static Class<?> loadProxyClass(ClassLoader loader, Class<?>[] interfaces
}

/*
* Load Class objects for the names in the interfaces array fron
* Load Class objects for the names in the interfaces array from
* the given class loader.
*
* We pass classObjs and nonpublic arrays to avoid needing a
Expand Down Expand Up @@ -882,7 +882,7 @@ private static Loader lookupLoader(final URL[] urls,
* A matching loader was not found, so create a new class
* loader instance for the requested codebase URL path and
* parent class loader. The instance is created within an
* access control context retricted to the permissions
* access control context restricted to the permissions
* necessary to load classes from its codebase URL path.
*/
AccessControlContext acc = getLoaderAccessControlContext(urls);
Expand Down
4 changes: 2 additions & 2 deletions src/java.rmi/share/classes/sun/rmi/server/UnicastRef.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1996, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -400,7 +400,7 @@ public void invoke(RemoteCall call) throws Exception {
} catch (RuntimeException e) {
/*
* REMIND: Since runtime exceptions are no longer wrapped,
* we can't assue that the connection was left in
* we can't assume that the connection was left in
* a reusable state. Is this okay?
*/
clientRefLog.log(Log.BRIEF, "exception: ", e);
Expand Down
6 changes: 3 additions & 3 deletions src/java.rmi/share/classes/sun/rmi/transport/GC.java
Original file line number Diff line number Diff line change
@@ -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.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -110,7 +110,7 @@ public void run() {
long d = maxObjectInspectionAge();
if (d >= l) {
/* Do a full collection. There is a remote possibility
* that a full collection will occurr between the time
* that a full collection will occur between the time
* we sample the inspection age and the time the GC
* actually starts, but this is sufficiently unlikely
* that it doesn't seem worth the more expensive JVM
Expand Down Expand Up @@ -177,7 +177,7 @@ private static void setLatencyTarget(long ms) {
public static class LatencyRequest
implements Comparable<LatencyRequest> {

/* Instance counter, used to generate unique identifers */
/* Instance counter, used to generate unique identifiers */
private static long counter = 0;

/* Sorted set of active latency requests */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1996, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -105,7 +105,7 @@ private static String getHostnameProperty() {
/**
* Find host name of local machine. Property "java.rmi.server.hostname"
* is used if set, so server administrator can compensate for the possible
* inablility to get fully qualified host name from VM.
* inability to get fully qualified host name from VM.
*/
static {
localHostKnown = true;
Expand All @@ -130,7 +130,7 @@ private static String getHostnameProperty() {
localHost = FQDN.attemptFQDN(localAddr);
} else {
/* default to using ip addresses, names will
* work across seperate domains.
* work across separate domains.
*/
localHost = localAddr.getHostAddress();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -95,7 +95,7 @@ public SimpleScriptContext() {

/**
* Package-private constructor to avoid needless creation of reader and writers.
* It is the caller's responsability to initialize the engine scope.
* It is the caller's responsibility to initialize the engine scope.
*
* @param reader the reader
* @param writer the writer
Expand Down
Loading

0 comments on commit e68024c

Please sign in to comment.