8285485: Fix typos in corelibs

Reviewed-by: jpai, sundar, naoto, lancea
This commit is contained in:
Magnus Ihse Bursie 2022-05-17 12:10:48 +00:00
parent d8455a0ad4
commit e68024c2d2
101 changed files with 295 additions and 295 deletions

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -811,8 +811,8 @@ public abstract class Binding {
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() {

View File

@ -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;

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -2511,7 +2511,7 @@ public class Logger {
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);
}

View File

@ -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
@ -175,7 +175,7 @@ public class XMLFormatter extends Formatter {
// 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");

View File

@ -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
@ -43,7 +43,7 @@ package com.sun.jndi.ldap.pool;
*/
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

View File

@ -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
@ -31,7 +31,7 @@ import javax.naming.directory.*;
/**
* 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,

View File

@ -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
@ -30,7 +30,7 @@ import javax.naming.directory.*;
/* 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

View File

@ -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
@ -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:
*

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -82,7 +82,7 @@ public class SearchFilter implements AttrFilter {
* 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
@ -400,7 +400,7 @@ public class SearchFilter implements AttrFilter {
!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;
}
@ -421,7 +421,7 @@ public class SearchFilter implements AttrFilter {
// 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;
}

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -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);

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -776,7 +776,7 @@ class WindowsPreferences extends AbstractPreferences {
/**
* 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.
*/

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -224,7 +224,7 @@ public final class MarshalledObject<T> implements Serializable {
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])

View File

@ -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
@ -70,7 +70,7 @@ public interface LoaderHandler {
* @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

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -324,7 +324,7 @@ public class RMIClassLoader {
* {@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>.

View File

@ -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
@ -151,7 +151,7 @@ public abstract class RMIClassLoaderSpi {
* 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>.

View File

@ -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
@ -33,8 +33,8 @@ import sun.rmi.server.MarshalInputStream;
* 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
@ -61,7 +61,7 @@ class 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

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -710,7 +710,7 @@ public final class LoaderHandler {
}
/*
* 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
@ -882,7 +882,7 @@ public final class LoaderHandler {
* 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);

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -400,7 +400,7 @@ public class UnicastRef implements RemoteRef {
} 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);

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -110,7 +110,7 @@ class GC {
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
@ -177,7 +177,7 @@ class GC {
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 */

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -105,7 +105,7 @@ public class TCPEndpoint implements Endpoint {
/**
* 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;
@ -130,7 +130,7 @@ public class TCPEndpoint implements Endpoint {
localHost = FQDN.attemptFQDN(localAddr);
} else {
/* default to using ip addresses, names will
* work across seperate domains.
* work across separate domains.
*/
localHost = localAddr.getHostAddress();
}

View File

@ -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
@ -95,7 +95,7 @@ public class SimpleScriptContext implements ScriptContext {
/**
* 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

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -397,7 +397,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
onInsertRow = false;
insertRow = null;
// set the warninings
// set the warnings
sqlwarn = new SQLWarning();
rowsetWarning = new RowSetWarning();
@ -446,7 +446,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
* optimistic provider <code>com.sun.rowset.providers.RIOptimisticProvider</code>.
* <p>
* In addition, the following properties can be associated with the
* provider to assist in determining the choice of the synchronizaton
* provider to assist in determining the choice of the synchronization
* provider such as:
* <ul>
* <li><code>ROWSET_SYNC_PROVIDER</code> - the property specifying the
@ -459,7 +459,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
* software vendor.
* </ul>
* More specific detailes are available in the <code>SyncFactory</code>
* and <code>SyncProvider</code> specificiations later in this document.
* and <code>SyncProvider</code> specifications later in this document.
* <p>
* @param env a <code>Hashtable</code> object with a list of desired
* synchronization providers
@ -967,8 +967,8 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
* Before returning, this method moves the cursor before the first row
* and sends a <code>rowSetChanged</code> event to all registered
* listeners.
* @throws SQLException if an error is occurs rolling back the RowSet
* state to the definied original value.
* @throws SQLException if an error occurs rolling back the RowSet
* state to the defined original value.
* @see javax.sql.RowSetListener#rowSetChanged
*/
public void restoreOriginal() throws SQLException {
@ -1108,7 +1108,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
/**
* Returns a new <code>RowSet</code> object backed by the same data as
* that of this <code>CachedRowSetImpl</code> object and sharing a set of cursors
* with it. This allows cursors to interate over a shared set of rows, providing
* with it. This allows cursors to iterate over a shared set of rows, providing
* multiple views of the underlying data.
*
* @return a <code>RowSet</code> object that is a copy of this <code>CachedRowSetImpl</code>
@ -1285,7 +1285,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
/**
* Converts this <code>CachedRowSetImpl</code> object to a collection
* of tables. The sample implementation utilitizes the <code>TreeMap</code>
* of tables. The sample implementation utilizes the <code>TreeMap</code>
* collection type.
* This class guarantees that the map will be in ascending key order,
* sorted according to the natural order for the key's class.
@ -1312,7 +1312,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
/**
* Returns the specified column of this <code>CachedRowSetImpl</code> object
* as a <code>Collection</code> object. This method makes a copy of the
* column's data and utilitizes the <code>Vector</code> to establish the
* column's data and utilizes the <code>Vector</code> to establish the
* collection. The <code>Vector</code> class implements a growable array
* objects allowing the individual components to be accessed using an
* an integer index similar to that of an array.
@ -1348,7 +1348,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
/**
* Returns the specified column of this <code>CachedRowSetImpl</code> object
* as a <code>Collection</code> object. This method makes a copy of the
* column's data and utilitizes the <code>Vector</code> to establish the
* column's data and utilizes the <code>Vector</code> to establish the
* collection. The <code>Vector</code> class implements a growable array
* objects allowing the individual components to be accessed using an
* an integer index similar to that of an array.
@ -1734,7 +1734,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
* @param columnIndex the first column is <code>1</code>, the second
* is <code>2</code>, and so on; must be <code>1</code> or larger
* and equal to or less than the number of columns in the rowset
* @return the column value as a <code>boolean</code> in the Java progamming language;
* @return the column value as a <code>boolean</code> in the Java programming language;
* if the value is SQL <code>NULL</code>, the result is <code>false</code>
* @throws SQLException if (1) the given column index is out of bounds,
* (2) the cursor is not on one of this rowset's rows or its
@ -2438,7 +2438,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
* (2) the cursor is not on one of this rowset's rows or its
* insert row, or (3) the designated column does not store an
* SQL <code>BINARY, VARBINARY</code> or <code><b>LONGVARBINARY</b></code>
* The bold type indicates the SQL type that this method is recommened
* The bold type indicates the SQL type that this method is recommended
* to retrieve.
* @see #getBinaryStream(String)
*/
@ -2818,7 +2818,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
* (2) the cursor is not on one of this rowset's rows or its
* insert row, or (3) the designated column does not store an
* SQL <code>BINARY, VARBINARY</code> or <code><b>LONGVARBINARY</b></code>
* The bold type indicates the SQL type that this method is recommened
* The bold type indicates the SQL type that this method is recommended
* to retrieve.
* @see #getBinaryStream(int)
*
@ -3516,7 +3516,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
throw new SQLException(resBundle.handleGetObject("cachedrowsetimpl.absolute").toString());
}
if (row > 0) { // we are moving foward
if (row > 0) { // we are moving forward
if (row > numRows) {
// fell off the end
afterLast();
@ -3872,7 +3872,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
}
/**
* Indicates whether the given SQL data type is a numberic type.
* Indicates whether the given SQL data type is a numeric type.
*
* @param type one of the constants from <code>java.sql.Types</code>
* @return <code>true</code> if the given type is <code>NUMERIC</code>,'
@ -5985,7 +5985,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
/**
* Retrieves the value of the designated column in this
* <code>CachedRowSetImpl</code> object as an <code>Array</code> object
* in the Java programming langugage.
* in the Java programming language.
*
* @param colName a <code>String</code> object that must match the
* SQL name of a column in this rowset, ignoring case
@ -6269,7 +6269,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
* with the given <code>RowSetMetaData</code> object.
*
* @param md a <code>RowSetMetaData</code> object instance containing
* metadata about the columsn in the rowset
* metadata about the columns in the rowset
* @throws SQLException if invalid meta data is supplied to the
* rowset
*/
@ -6385,7 +6385,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
/**
* Marks all rows in this rowset as being original rows. Any updates
* made to the rows become the original values for the rowset.
* Calls to the method <code>setOriginal</code> connot be reversed.
* Calls to the method <code>setOriginal</code> cannot be reversed.
*
* @throws SQLException if an error occurs
*/
@ -6804,7 +6804,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
* object is returned. Subsequent <code>CachedRowSetImpl</code> warnings will
* be chained to this <code>SQLWarning</code>. All <code>RowSetWarnings</code>
* warnings are generated in the disconnected environment and remain a
* seperate warning chain to that provided by the <code>getWarnings</code>
* separate warning chain to that provided by the <code>getWarnings</code>
* method.
*
* <P>The warning chain is automatically cleared each time a new
@ -6864,7 +6864,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
int idxWhere = tabName.toLowerCase().indexOf("where");
/**
* Adding the addtional check for conditions following the table name.
* Adding the additional check for conditions following the table name.
* If a condition is found truncate it.
**/
@ -7240,7 +7240,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
*
* @param data the <code>ResultSet</code> object containing the data
* to be read into this <code>CachedRowSetImpl</code> object
* @param start the integer specifing the position in the
* @param start the integer specifying the position in the
* <code>ResultSet</code> object to popultate the
* <code>CachedRowSetImpl</code> object.
* @throws SQLException if an error occurs; or the max row setting is
@ -7421,7 +7421,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
/**
* This is the setter function for setting the size of the page, which specifies
* how many rows have to be retrived at a time.
* how many rows have to be retrieved at a time.
*
* @param size which is the page size
* @throws SQLException if size is less than zero or greater than max rows.
@ -7526,7 +7526,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
int counter;
if( page <= 0 ){
throw new SQLException("Absolute positoin is invalid");
throw new SQLException("Absolute position is invalid");
}
counter = 0;
@ -7551,7 +7551,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
/**
* Goes to the page number passed as the parameter from the current page.
* The parameter can take postive or negative value accordingly.
* The parameter can take positive or negative value accordingly.
* @param page , the page loaded on a call to this function
* @return true if the page exists false otherwise
* @throws SQLException if an error occurs
@ -7629,7 +7629,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
*/
/**
* Retrives the last page of data as specified by the page size.
* Retrieves the last page of data as specified by the page size.
* @return boolean value tur if present on the last page, false otherwise
* @throws SQLException if called before populate or if an error occurs.
*/

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -451,8 +451,8 @@ public class FilteredRowSetImpl extends WebRowSetImpl implements Serializable, C
/**
* This is explanation for the overriding of the updateXXX functions.
* These functions have been overriden to ensure that only correct
* values that pass the criteria for the filter are actaully inserted.
* These functions have been overridden to ensure that only correct
* values that pass the criteria for the filter are actually inserted.
* The evaluation of whether a particular value passes the criteria
* of the filter is done using the evaluate function in the Predicate
* interface.

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2011, 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
@ -132,7 +132,7 @@ public class JdbcRowSetResourceBundle implements Serializable {
* This method returns an enumerated handle of the keys
* which correspond to values translated to various locales.
*
* @return an enumeration of keys which have messages tranlated to
* @return an enumeration of keys which have messages translated to
* corresponding locales.
*/
@SuppressWarnings("rawtypes")

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -406,12 +406,12 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
* Returns a Collection of the <code>RowSet</code> object instances
* currently residing with the instance of the <code>JoinRowSet</code>
* object instance. This should return the 'n' number of RowSet contained
* within the JOIN and maintain any updates that have occoured while in
* within the JOIN and maintain any updates that have occurred while in
* this union.
*
* @return A <code>Collection</code> of the added <code>RowSet</code>
* object instances
* @throws SQLException if an error occours generating a collection
* @throws SQLException if an error occurs generating a collection
* of the originating RowSets contained within the JOIN.
*/
@SuppressWarnings("rawtypes")
@ -424,7 +424,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
* with the <code>JoinRowSet</code> object instance.
*
* @return a string array of the RowSet names
* @throws SQLException if an error occours retrieving the RowSet names
* @throws SQLException if an error occurs retrieving the RowSet names
* @see CachedRowSet#setTableName
*/
public String[] getRowSetNames() throws SQLException {
@ -633,10 +633,10 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
// Now we have two rowsets crsInternal and cRowset which need
// to be INNER JOIN'ED to form a new rowset
// Compare table1.MatchColumn1.value1 == { table2.MatchColumn2.value1
// ... upto table2.MatchColumn2.valueN }
// ... up to table2.MatchColumn2.valueN }
// ...
// Compare table1.MatchColumn1.valueM == { table2.MatchColumn2.value1
// ... upto table2.MatchColumn2.valueN }
// ... up to table2.MatchColumn2.valueN }
//
// Assuming first rowset has M rows and second N rows.
@ -682,7 +682,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
if (match) {
int p;
int colc = 0; // reset this variable everytime you loop
int colc = 0; // reset this variable every time you loop
// re create a JoinRowSet in crsTemp object
crsTemp.moveToInsertRow();
@ -863,8 +863,8 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
* strings description of <code>JOIN</code> or provide a textual description to assist
* applications using a <code>JoinRowSet</code>.
*
* @return whereClause a textual or SQL descripition of the logical
* <code>WHERE</code> cluase used in the <code>JoinRowSet</code> instance
* @return whereClause a textual or SQL description of the logical
* <code>WHERE</code> clause used in the <code>JoinRowSet</code> instance
* @throws SQLException if an error occurs in generating a representation
* of the <code>WHERE</code> clause.
*/
@ -1769,7 +1769,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
/**
* Retrieves the value of the designated column in this
* <code>JoinRowSetImpl</code> object as an <code>Object</code> in
* the Java programming lanugage, using the given
* the Java programming language, using the given
* <code>java.util.Map</code> object to custom map the value if
* appropriate.
*
@ -2185,7 +2185,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
* <code>false</code> will always be returned if it does not detect updates.
*
* @return <code>true</code> if the column updated
* <code>false</code> otherwse
* <code>false</code> otherwise
* @throws SQLException if the cursor is on the insert row or not
* on a valid row
* @see DatabaseMetaData#updatesAreDetected
@ -3428,7 +3428,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
/**
* Retrieves the value of the designated column in this
* <code>JoinRowSetImpl</code> object as a <code>Ref</code> object
* in the Java programming lanugage.
* in the Java programming language.
*
* @param columnIndex the first column is <code>1</code>, the second
* is <code>2</code>, and so on; must be <code>1</code> or larger
@ -3446,7 +3446,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
/**
* Retrieves the value of the designated column in this
* <code>JoinRowSetImpl</code> object as a <code>Blob</code> object
* in the Java programming lanugage.
* in the Java programming language.
*
* @param columnIndex the first column is <code>1</code>, the second
* is <code>2</code>, and so on; must be <code>1</code> or larger
@ -3464,7 +3464,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
/**
* Retrieves the value of the designated column in this
* <code>JoinRowSetImpl</code> object as a <code>Clob</code> object
* in the Java programming lanugage.
* in the Java programming language.
*
* @param columnIndex the first column is <code>1</code>, the second
* is <code>2</code>, and so on; must be <code>1</code> or larger
@ -3482,7 +3482,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
/**
* Retrieves the value of the designated column in this
* <code>JoinRowSetImpl</code> object as an <code>Array</code> object
* in the Java programming lanugage.
* in the Java programming language.
*
* @param columnIndex the first column is <code>1</code>, the second
* is <code>2</code>, and so on; must be <code>1</code> or larger
@ -3503,7 +3503,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
/**
* Retrieves the value of the designated column in this
* <code>JoinRowSetImpl</code> object as a <code>Ref</code> object
* in the Java programming lanugage.
* in the Java programming language.
*
* @param columnName a <code>String</code> object that must match the
* SQL name of a column in this rowset, ignoring case
@ -3520,7 +3520,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
/**
* Retrieves the value of the designated column in this
* <code>JoinRowSetImpl</code> object as a <code>Blob</code> object
* in the Java programming lanugage.
* in the Java programming language.
*
* @param columnName a <code>String</code> object that must match the
* SQL name of a column in this rowset, ignoring case
@ -3538,7 +3538,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
/**
* Retrieves the value of the designated column in this
* <code>JoinRowSetImpl</code> object as a <code>Clob</code> object
* in the Java programming lanugage.
* in the Java programming language.
*
* @param columnName a <code>String</code> object that must match the
* SQL name of a column in this rowset, ignoring case
@ -3556,7 +3556,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
/**
* Retrieves the value of the designated column in this
* <code>JoinRowSetImpl</code> object as an <code>Array</code> object
* in the Java programming lanugage.
* in the Java programming language.
*
* @param columnName a <code>String</code> object that must match the
* SQL name of a column in this rowset, ignoring case
@ -3712,7 +3712,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
* with the given <code>RowSetMetaData</code> object.
*
* @param md a <code>RowSetMetaData</code> object instance containing
* metadata about the columsn in the rowset
* metadata about the columns in the rowset
* @throws SQLException if invalid meta data is supplied to the
* rowset
*/
@ -4050,7 +4050,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
* connection to the datasource
* @throws SQLException if an invalid <code>Connection</code> is supplied
* or an error occurs in establishing the connection to the
* data soure
* data source
* @see java.sql.Connection
*/
public void execute(Connection conn) throws SQLException {
@ -4226,7 +4226,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
/**
* Converts this <code>JoinRowSetImpl</code> object to a collection
* of tables. The sample implementation utilitizes the <code>TreeMap</code>
* of tables. The sample implementation utilizes the <code>TreeMap</code>
* collection type.
* This class guarantees that the map will be in ascending key order,
* sorted according to the natural order for the key's class.
@ -4246,7 +4246,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
/**
* Returns the specified column of this <code>JoinRowSetImpl</code> object
* as a <code>Collection</code> object. This method makes a copy of the
* column's data and utilitizes the <code>Vector</code> to establish the
* column's data and utilizes the <code>Vector</code> to establish the
* collection. The <code>Vector</code> class implements a growable array
* objects allowing the individual components to be accessed using an
* an integer index similar to that of an array.
@ -4268,7 +4268,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
/**
* Returns the specified column of this <code>JoinRowSetImpl</code> object
* as a <code>Collection</code> object. This method makes a copy of the
* column's data and utilitizes the <code>Vector</code> to establish the
* column's data and utilizes the <code>Vector</code> to establish the
* collection. The <code>Vector</code> class implements a growable array
* objects allowing the individual components to be accessed using an
* an integer index similar to that of an array.

View File

@ -95,7 +95,7 @@ joinrowsetimpl.numnotequal = Number of elements in rowset not equal to match col
joinrowsetimpl.notdefined = This is not a defined type of join
joinrowsetimpl.notsupported = This type of join is not supported
joinrowsetimpl.initerror = JoinRowSet initialization error
joinrowsetimpl.genericerr = Genric joinrowset intial error
joinrowsetimpl.genericerr = Generic joinrowset initial error
joinrowsetimpl.emptyrowset = Empty rowset cannot be added to this JoinRowSet
#JdbcRowSetImpl exceptions

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -603,9 +603,9 @@ public class CachedRowSetWriter implements TransactionalWriter, Serializable {
// reset boolNull if it had been set
boolNull = true;
/** This addtional checking has been added when the current value
/** This additional checking has been added when the current value
* in the DB is null, but the DB had a different value when the
* data was actaully fetched into the CachedRowSet.
* data was actually fetched into the CachedRowSet.
**/
if(rsval == null && orig != null) {
@ -638,7 +638,7 @@ public class CachedRowSetWriter implements TransactionalWriter, Serializable {
objVal = rsval;
} else if ( (orig == null || curr == null) ) {
/** Adding the additonal condition of checking for "flag"
/** Adding the additional condition of checking for "flag"
* boolean variable, which would otherwise result in
* building a invalid query, as the comma would not be
* added to the query string.
@ -1171,7 +1171,7 @@ public class CachedRowSetWriter implements TransactionalWriter, Serializable {
deleteCmd = "DELETE FROM " + buildTableName(dbmd, catalog, schema, table);
/*
* set the key desriptors that will be
* set the key descriptors that will be
* needed to construct where clauses.
*/
buildKeyDesc(caller);

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -302,7 +302,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
* values of a particular row after they have been resolved by
* the user to synchronize back to datasource.
* @throws SQLException if synchronization does not happen properly
* maybe beacuse {@code Connection} has timed out.
* maybe because {@code Connection} has timed out.
**/
private void writeData(CachedRowSet row) throws SQLException {
crw.updateResolvedConflictToDB(row, crw.getReader().connect((RowSetInternal)crsSync));
@ -661,8 +661,8 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
* Before returning, this method moves the cursor before the first row
* and sends a {@code rowSetChanged} event to all registered
* listeners.
* @throws SQLException if an error is occurs rolling back the RowSet
* state to the definied original value.
* @throws SQLException if an error occurs rolling back the RowSet
* state to the defined original value.
* @see javax.sql.RowSetListener#rowSetChanged
*/
public void restoreOriginal() throws SQLException {
@ -742,7 +742,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
/**
* Returns a new {@code RowSet} object backed by the same data as
* that of this {@code CachedRowSetImpl} object and sharing a set of cursors
* with it. This allows cursors to interate over a shared set of rows, providing
* with it. This allows cursors to iterate over a shared set of rows, providing
* multiple views of the underlying data.
*
* @return a {@code RowSet} object that is a copy of this {@code CachedRowSetImpl}
@ -851,7 +851,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
/**
* Converts this {@code CachedRowSetImpl} object to a collection
* of tables. The sample implementation utilitizes the {@code TreeMap}
* of tables. The sample implementation utilizes the {@code TreeMap}
* collection type.
* This class guarantees that the map will be in ascending key order,
* sorted according to the natural order for the key's class.
@ -872,7 +872,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
/**
* Returns the specified column of this {@code CachedRowSetImpl} object
* as a {@code Collection} object. This method makes a copy of the
* column's data and utilitizes the {@code Vector} to establish the
* column's data and utilizes the {@code Vector} to establish the
* collection. The {@code Vector} class implements a growable array
* objects allowing the individual components to be accessed using an
* an integer index similar to that of an array.
@ -895,7 +895,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
/**
* Returns the specified column of this {@code CachedRowSetImpl} object
* as a {@code Collection} object. This method makes a copy of the
* column's data and utilitizes the {@code Vector} to establish the
* column's data and utilizes the {@code Vector} to establish the
* collection. The {@code Vector} class implements a growable array
* objects allowing the individual components to be accessed using an
* an integer index similar to that of an array.
@ -1124,7 +1124,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
* @param columnIndex the first column is {@code 1}, the second
* is {@code 2}, and so on; must be {@code 1} or larger
* and equal to or less than the number of columns in the rowset
* @return the column value as a {@code boolean} in the Java progamming language;
* @return the column value as a {@code boolean} in the Java programming language;
* if the value is SQL {@code NULL}, the result is {@code false}
* @throws SQLException if (1) the given column index is out of bounds,
* (2) the cursor is not on one of this rowset's rows or its
@ -1467,7 +1467,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
* (2) the cursor is not on one of this rowset's rows or its
* insert row, or (3) the designated column does not store an
* SQL {@code BINARY, VARBINARY} or <b>{@code LONGVARBINARY}</b>.
* The bold type indicates the SQL type that this method is recommened
* The bold type indicates the SQL type that this method is recommended
* to retrieve.
* @see #getBinaryStream(String)
*/
@ -1829,7 +1829,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
* (2) the cursor is not on one of this rowset's rows or its
* insert row, or (3) the designated column does not store an
* SQL {@code BINARY, VARBINARY} or <b>{@code LONGVARBINARY}</b>
* The bold type indicates the SQL type that this method is recommened
* The bold type indicates the SQL type that this method is recommended
* to retrieve.
* @see #getBinaryStream(int)
*
@ -3938,7 +3938,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
/**
* Retrieves the value of the designated column in this
* {@code CachedRowSetImpl} object as an {@code Array} object
* in the Java programming langugage.
* in the Java programming language.
*
* @param colName a {@code String} object that must match the
* SQL name of a column in this rowset, ignoring case
@ -4113,7 +4113,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
* with the given {@code RowSetMetaData} object.
*
* @param md a {@code RowSetMetaData} object instance containing
* metadata about the columsn in the rowset
* metadata about the columns in the rowset
* @throws SQLException if invalid meta data is supplied to the
* rowset
*/
@ -4168,7 +4168,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
/**
* Marks all rows in this rowset as being original rows. Any updates
* made to the rows become the original values for the rowset.
* Calls to the method {@code setOriginal} connot be reversed.
* Calls to the method {@code setOriginal} cannot be reversed.
*
* @throws SQLException if an error occurs
*/
@ -4491,7 +4491,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
* object is returned. Subsequent {@code CachedRowSetImpl} warnings will
* be chained to this {@code SQLWarning}. All {@code RowSetWarnings}
* warnings are generated in the disconnected environment and remain a
* seperate warning chain to that provided by the {@code getWarnings}
* separate warning chain to that provided by the {@code getWarnings}
* method.
*
* <P>The warning chain is automatically cleared each time a new
@ -4760,7 +4760,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
*
* @param data the {@code ResultSet} object containing the data
* to be read into this {@code CachedRowSetImpl} object
* @param start the integer specifing the position in the
* @param start the integer specifying the position in the
* {@code ResultSet} object to popultate the
* {@code CachedRowSetImpl} object.
* @throws SQLException if an error occurs; or the max row setting is
@ -4786,7 +4786,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
/**
* This is the setter function for setting the size of the page, which specifies
* how many rows have to be retrived at a time.
* how many rows have to be retrieved at a time.
*
* @param size which is the page size
* @throws SQLException if size is less than zero or greater than max rows.

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2012, 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.
*
* This code is free software; you can redistribute it and/or modify it
@ -625,7 +625,7 @@ public class WebRowSetXmlWriter implements XmlWriter, Serializable {
/**
* This function has been added for the processing of special characters
* lik <,>,'," and & in the data to be serialized. These have to be taken
* like <,>,'," and & in the data to be serialized. These have to be taken
* of specifically or else there will be parsing error while trying to read
* the contents of the XML file.
**/

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -48,7 +48,7 @@ import java.text.MessageFormat;
* a <code>RowSet</code> object.
* <P>
* A rowset consists of its properties, metadata, and data values. An XML document
* representating a rowset includes the values in these three categories along with
* representing a rowset includes the values in these three categories along with
* appropriate XML tags to identify them. It also includes a top-level XML tag for
* the rowset and three section tags identifying the three categories of values.
* <P>

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2019, 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.
*
* This code is free software; you can redistribute it and/or modify it
@ -37,7 +37,7 @@ import com.sun.rowset.internal.*;
* providing optimistic synchronization with a relational datastore
* using any JDBC technology-enabled driver.
*
* <h2>1.0 Backgroud</h2>
* <h2>1.0 Background</h2>
* This synchronization provider is registered with the
* <code>SyncFactory</code> by default as the
* <code>com.sun.rowset.providers.RIOptimisticProvider</code>.
@ -47,7 +47,7 @@ import com.sun.rowset.internal.*;
* interface implementations. As a reference implementation,
* <code>RIOptimisticProvider</code> provides a
* fully functional implementation offering a medium grade classification of
* syncrhonization, namely GRADE_CHECK_MODIFIED_AT_COMMIT. A
* synchronization, namely GRADE_CHECK_MODIFIED_AT_COMMIT. A
* disconnected <code>RowSet</code> implementation using the
* <code>RIOptimisticProvider</code> can expect the writer to
* check only rows that have been modified in the <code>RowSet</code> against
@ -171,7 +171,7 @@ public final class RIOptimisticProvider extends SyncProvider implements Serializ
/**
* Returns the <code>SyncProvider</code> grade of synchronization that
* <code>RowSet</code> objects can expect when using this
* implementation. As an optimisic synchonization provider, the writer
* implementation. As an optimistic synchronization provider, the writer
* will only check rows that have been modified in the <code>RowSet</code>
* object.
*/

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2019, 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.
*
* This code is free software; you can redistribute it and/or modify it
@ -169,10 +169,10 @@ public final class RIXMLProvider extends SyncProvider {
/**
* Returns the <code>SyncProvider</code> grade of syncrhonization that
* <code>RowSet</code> object instances can expect when using this
* implementation. As this implementation provides no synchonization
* implementation. As this implementation provides no synchronization
* facilities to the XML data source, the lowest grade is returned.
*
* @return the <code>SyncProvider</code> syncronization grade of this
* @return the <code>SyncProvider</code> synchronization grade of this
* provider; must be one of the following constants:
* <PRE>
* SyncProvider.GRADE_NONE,
@ -236,8 +236,8 @@ public final class RIXMLProvider extends SyncProvider {
}
/**
* Returns the vendor name of the Reference Implemntation Optimistic
* Syncchronication Provider
* Returns the vendor name of the Reference Implementation Optimistic
* Synchronization Provider
*
* @return the <code>String</code> detailing the vendor name of this
* SyncProvider

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -29,7 +29,7 @@ package java.sql;
* The subclass of {@link SQLException} thrown when the SQLState class value is '<i>0A</i>'
* ( the value is 'zero' A).
* This indicates that the JDBC driver does not support an optional JDBC feature.
* Optional JDBC features can fall into the fallowing categories:
* Optional JDBC features can fall into the following categories:
*
*<UL>
*<LI>no support for an optional feature

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2001, 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
@ -180,7 +180,7 @@ public class XAException extends Exception {
public static final int XAER_INVAL = -5;
/**
* Routine was invoked in an inproper context.
* Routine was invoked in an improper context.
*/
public static final int XAER_PROTO = -6;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2001, 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
@ -137,7 +137,7 @@ public interface XAResource {
/**
* This method is called to determine if the resource manager
* instance represented by the target object is the same as the
* resouce manager instance represented by the parameter <i>xares</i>.
* resource manager instance represented by the parameter <i>xares</i>.
*
* @param xares An XAResource object whose resource manager instance
* is to be compared with the resource manager instance of the

View File

@ -363,7 +363,7 @@ public abstract class lr_parser {
* Once end of file has been reached, all subsequent calls to scan
* should return an EOF Symbol (which is Symbol number 0). By default
* this method returns getScanner().next_token(); this implementation
* can be overriden by the generated parser using the code declared in
* can be overridden by the generated parser using the code declared in
* the "scan with" clause. Do not recycle objects; every call to
* scan() should return a fresh object.
*/

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2017, 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.
*
* This code is free software; you can redistribute it and/or modify it
@ -107,7 +107,7 @@ public class virtual_parse_stack {
/* don't transfer if the real stack is empty */
if (real_next >= real_stack.size()) return;
/* get a copy of the first Symbol we have not transfered */
/* get a copy of the first Symbol we have not transferred */
stack_sym = real_stack.get(real_stack.size()-1-real_next);
/* record the transfer */

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2022, Oracle and/or its affiliates. All rights reserved.
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
@ -56,7 +56,7 @@ public abstract class XMLEntityReader implements XMLLocator {
* pseudo-attribute.
* <p>
* <strong>Note:</strong> The underlying character reader on the
* current entity will be changed to accomodate the new encoding.
* current entity will be changed to accommodate the new encoding.
* However, the new encoding is ignored if the current reader was
* not constructed from an input stream (e.g. an external entity
* that is resolved directly to the appropriate java.io.Reader

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2006, 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
@ -266,7 +266,7 @@ public class XMLInputFactoryImpl extends javax.xml.stream.XMLInputFactory {
//& the setProperty() hasn't been called
if(fReuseInstance && fTempReader.canReuse() && !fPropertyChanged){
if(DEBUG)System.out.println("Reusing the instance");
//we can make setInputSource() call reset() and this way there wont be two function calls
//we can make setInputSource() call reset() and this way there won't be two function calls
fTempReader.reset();
fTempReader.setInputSource(inputSource);
fPropertyChanged = false;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2022, Oracle and/or its affiliates. All rights reserved.
*/
/*
@ -85,7 +85,7 @@ public class DTDGrammarUtil {
/** True if inside of element content. */
private boolean fInElementContent = false;
/** Temporary atribute declaration. */
/** Temporary attribute declaration. */
private XMLAttributeDecl fTempAttDecl = new XMLAttributeDecl();
/** Temporary qualified name. */

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2022, Oracle and/or its affiliates. All rights reserved.
*/
/*
@ -38,7 +38,7 @@ import java.util.Map;
/**
* A DTD grammar. This class implements the XNI handler interfaces
* for DTD information so that it can build the approprate validation
* for DTD information so that it can build the appropriate validation
* structures automatically from the callbacks.
*
* @author Eric Ye, IBM

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 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
@ -46,7 +46,7 @@ implements Characters {
private boolean fIsCData;
/* true if fData is ignorableWhitespace*/
private boolean fIsIgnorableWhitespace;
/* true if fData contet is whitespace*/
/* true if fData content is whitespace*/
private boolean fIsSpace = false;
/*used to prevent scanning of data multiple times */
private boolean fCheckIfSpaceNeeded = true;
@ -166,7 +166,7 @@ implements Characters {
/**
* Returns true if this set of Characters
* is all whitespace. Whitspace inside a document
* is all whitespace. Whitespace inside a document
* is reported as CHARACTERS. This method allows
* checking of CHARACTERS events to see if they
* are composed of only whitespace characters
@ -182,7 +182,7 @@ implements Characters {
}
private void checkWhiteSpace(){
//for now - remove dependancy of XMLChar
//for now - remove dependency of XMLChar
if(fData != null && fData.length() >0 ){
fIsSpace = true;
for(int i=0;i<fData.length();i++){

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2016, 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
@ -65,8 +65,8 @@ public class DTDEvent extends DummyEvent implements DTD {
//xxx: we can change the signature if the implementation doesn't store the entities in List Datatype.
//and then convert that DT to list format here. That way callee dont need to bother about conversion
public void setEntities(List<EntityDeclaration> entites) {
fEntities = entites;
public void setEntities(List<EntityDeclaration> entities) {
fEntities = entities;
}
@Override

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -33,7 +33,7 @@ import jdk.xml.internal.JdkXmlUtils;
/**
*
* This class store all the information for a particular EntityDeclaration. EntityDeclaration interface
* has various get* functiosn to retirve information about a particular EntityDeclaration.
* has various get* functions to retrieve information about a particular EntityDeclaration.
*
* @author Neeraj Bajaj, Sun Microsystems.
*/

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 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
@ -43,7 +43,7 @@ implements ProcessingInstruction {
/** Processing Instruction Name */
private String fName;
/** Processsing instruction content */
/** Processing instruction content */
private String fContent;
public ProcessingInstructionEvent() {

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -204,7 +204,7 @@ public class XMLEventAllocatorImpl implements XMLEventAllocator {
for (int i = 0; i < len; i++) {
qname = xmlr.getAttributeName(i);
//this method doesn't include namespace declarations
//so we can be sure that there wont be any namespace declaration as part of this function call
//so we can be sure that there won't be any namespace declaration as part of this function call
//we can avoid this check - nb.
/**
* prefix = qname.getPrefix(); localpart = qname.getLocalPart(); if

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2016, 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
@ -73,7 +73,7 @@ public class XMLEventFactoryImpl extends XMLEventFactory {
@Override
public Characters createCData(String content) {
//stax doesn't have separate CDATA event. This is taken care by
//CHRACTERS event setting the cdata flag to true.
//CHARACTERS event setting the cdata flag to true.
CharacterEvent charEvent = new CharacterEvent(content, true);
if(location != null)charEvent.setLocation(location);
return charEvent;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2017, 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
@ -61,7 +61,7 @@ public class WriterUtility {
/**XXX: This feature is only used when writing element content values.
* default value is 'true' however, if the feature is set to false
* characters wont be escaped.
* characters won't be escaped.
* This feature has no effect when writing Attribute values, character would still be escaped.
* I can't think of any reason why this would be useful when writing attribute values.
* However, this can be reconsidered if there is any usecase.
@ -94,7 +94,7 @@ public class WriterUtility {
}
}
else{
//attempt to retreive default fEncoderoder
//attempt to retrieve default fEncoder
fEncoder = getDefaultEncoder();
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2016, 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
@ -175,7 +175,7 @@ public class XMLDOMWriterImpl implements XMLStreamWriterBase {
}
/**
* Creates a DOM Atrribute @see org.w3c.dom.Node and associates it with the current DOM element @see org.w3c.dom.Node.
* Creates a DOM Attribute @see org.w3c.dom.Node and associates it with the current DOM element @see org.w3c.dom.Node.
* @param localName {@inheritDoc}
* @param value {@inheritDoc}
* @throws javax.xml.stream.XMLStreamException {@inheritDoc}
@ -194,7 +194,7 @@ public class XMLDOMWriterImpl implements XMLStreamWriterBase {
}
/**
* Creates a DOM Atrribute @see org.w3c.dom.Node and associates it with the current DOM element @see org.w3c.dom.Node.
* Creates a DOM Attribute @see org.w3c.dom.Node and associates it with the current DOM element @see org.w3c.dom.Node.
* @param namespaceURI {@inheritDoc}
* @param localName {@inheritDoc}
* @param value {@inheritDoc}
@ -235,7 +235,7 @@ public class XMLDOMWriterImpl implements XMLStreamWriterBase {
}
/**
* Creates a DOM Atrribute @see org.w3c.dom.Node and associates it with the current DOM element @see org.w3c.dom.Node.
* Creates a DOM Attribute @see org.w3c.dom.Node and associates it with the current DOM element @see org.w3c.dom.Node.
* @param prefix {@inheritDoc}
* @param namespaceURI {@inheritDoc}
* @param localName {@inheritDoc}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2019, 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
@ -755,7 +755,7 @@ public final class XMLStreamWriterImpl extends AbstractMap<Object, Object>
* Write default Namespace.
*
* If namespaceURI == null,
* then it is assumed to be equivilent to {@link XMLConstants.NULL_NS_URI},
* then it is assumed to be equivalent to {@link XMLConstants.NULL_NS_URI},
* i.e. there is no Namespace.
*
* @param namespaceURI NamespaceURI to declare.
@ -982,7 +982,7 @@ public final class XMLStreamWriterImpl extends AbstractMap<Object, Object>
* Write a Namespace declaration.
*
* If namespaceURI == null,
* then it is assumed to be equivilent to {@link XMLConstants.NULL_NS_URI},
* then it is assumed to be equivalent to {@link XMLConstants.NULL_NS_URI},
* i.e. there is no Namespace.
*
* @param prefix Prefix to bind.
@ -1246,7 +1246,7 @@ public final class XMLStreamWriterImpl extends AbstractMap<Object, Object>
if (!foundAlias) {
throw new XMLStreamException("Underlying stream encoding '"
+ streamEncoding
+ "' and input paramter for writeStartDocument() method '"
+ "' and input parameter for writeStartDocument() method '"
+ encoding + "' do not match.");
}
}
@ -2034,7 +2034,7 @@ public final class XMLStreamWriterImpl extends AbstractMap<Object, Object>
/**
* This function is as a result of optimization done for endElement --
* we dont need to set the value for every end element we encouter.
* we dont need to set the value for every end element we encounter.
* For Well formedness checks we can have the same QName object that was pushed.
* the values will be set only if application need to know about the endElement
*/
@ -2220,7 +2220,7 @@ public final class XMLStreamWriterImpl extends AbstractMap<Object, Object>
/**
* Overrides the method defined in AbstractMap which is
* not completely implemented. Calling toString() in
* AbstractMap would cause an unsupported exection to
* AbstractMap would cause an unsupported exception to
* be thrown.
*/
@Override

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2006, 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
@ -37,7 +37,7 @@ import com.sun.org.apache.xerces.internal.util.XMLStringBuffer;
* For efficiency this writer buffers the input. Use <code>flush()</code> function
* to explicitly write the data to underlying stream.
*
* This writer is designed in such a way that it atleast buffers the input to the
* This writer is designed in such a way that it at least buffers the input to the
* <code>size</code> specified. Unless <code>flush</code> is called, it guarantees that
* data in chunks of size equal to or more than <code>size</code> specified will be written.
*
@ -64,9 +64,9 @@ public class XMLWriter extends Writer {
}
/**
* Creates the instnace of <code>XMLWriter</code>.
* Creates the instance of <code>XMLWriter</code>.
*
* atleast buffers the input to the
* at least buffers the input to the
* <code>size</code> specified.
*/
public XMLWriter(Writer writer, int size){

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2017, 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.
*
* This code is free software; you can redistribute it and/or modify it
@ -132,7 +132,7 @@ final class CatalogMessages {
/**
* Reports IllegalArgumentException
* @param arguments the arguments for formating the error message
* @param arguments the arguments for formatting the error message
* @param cause the cause if any
*/
static void reportIAE(String key, Object[] arguments, Throwable cause) {

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -56,7 +56,7 @@ public class XMLStreamException extends Exception {
}
/**
* Construct an exception with the assocated message.
* Construct an exception with the associated message.
*
* @param msg the message to report
*/
@ -65,7 +65,7 @@ public class XMLStreamException extends Exception {
}
/**
* Construct an exception with the assocated exception
* Construct an exception with the associated exception
*
* @param th a nested exception
*/
@ -75,7 +75,7 @@ public class XMLStreamException extends Exception {
}
/**
* Construct an exception with the assocated message and exception
* Construct an exception with the associated message and exception
*
* @param th a nested exception
* @param msg the message to report
@ -86,7 +86,7 @@ public class XMLStreamException extends Exception {
}
/**
* Construct an exception with the assocated message, exception and location.
* Construct an exception with the associated message, exception and location.
*
* @param th a nested exception
* @param msg the message to report
@ -101,7 +101,7 @@ public class XMLStreamException extends Exception {
}
/**
* Construct an exception with the assocated message, exception and location.
* Construct an exception with the associated message, exception and location.
*
* @param msg the message to report
* @param location the location of the error

View File

@ -268,7 +268,7 @@ public interface XMLStreamReader extends XMLStreamConstants {
* until a START_ELEMENT or END_ELEMENT is reached.
* If other than white space characters, COMMENT, PROCESSING_INSTRUCTION, START_ELEMENT, END_ELEMENT
* are encountered, an exception is thrown. This method should
* be used when processing element-only content seperated by white space.
* be used when processing element-only content separated by white space.
*
* <br> Precondition: none
* <br> Postcondition: the current event is START_ELEMENT or END_ELEMENT

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2009, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -251,10 +251,10 @@ public interface XMLStreamWriter {
* Writes string data to the output without checking for well formedness.
* The data is opaque to the XMLStreamWriter, i.e. the characters are written
* blindly to the underlying output. If the method cannot be supported
* in the currrent writing context the implementation may throw a
* in the current writing context the implementation may throw a
* UnsupportedOperationException. For example note that any
* namespace declarations, end tags, etc. will be ignored and could
* interfere with proper maintanence of the writers internal state.
* interfere with proper maintenance of the writers internal state.
*
* @param data the data to write
*/

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -63,7 +63,7 @@ public interface EntityDeclaration extends XMLEvent {
* The replacement text of the entity.
* This method will only return non-null
* if this is an internal entity.
* @return null or the replacment text
* @return null or the replacement text
*/
String getReplacementText();

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2005, 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
@ -164,7 +164,7 @@ public class OutputKeys {
* <p><code>cdata-section-elements</code> specifies a whitespace delimited
* list of the names of elements whose text node children should be output
* using CDATA sections. Note that these names must use the format
* described in the section Qualfied Name Representation in
* described in the section Qualified Name Representation in
* {@link javax.xml.transform}.</p>
*
* @see <a href="http://www.w3.org/TR/xslt#output">

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2005, 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
@ -124,7 +124,7 @@ public abstract class Transformer {
* @param name The name of the parameter, which may begin with a
* namespace URI in curly braces ({}).
* @param value The value object. This can be any valid Java object. It is
* up to the processor to provide the proper object coersion or to simply
* up to the processor to provide the proper object conversion or to simply
* pass the object on for use in an extension.
*
* @throws NullPointerException If value is null.

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -207,7 +207,7 @@ public abstract class TransformerFactory {
*
* @param source The XML source document.
* @param media The media attribute to be matched. May be null, in which
* case the prefered templates will be used (i.e. alternate = no).
* case the preferred templates will be used (i.e. alternate = no).
* @param title The value of the title attribute to match. May be null.
* @param charset The value of the charset attribute to match. May be null.
*

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2005, 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
@ -136,7 +136,7 @@ public class DOMResult implements Result {
*/
public DOMResult(Node node, Node nextSibling) {
// does the corrent parent/child relationship exist?
// does the correct parent/child relationship exist?
if (nextSibling != null) {
// cannot be a sibling of a null node
if (node == null) {
@ -189,7 +189,7 @@ public class DOMResult implements Result {
*/
public DOMResult(Node node, Node nextSibling, String systemId) {
// does the corrent parent/child relationship exist?
// does the correct parent/child relationship exist?
if (nextSibling != null) {
// cannot be a sibling of a null node
if (node == null) {
@ -231,7 +231,7 @@ public class DOMResult implements Result {
* {@code nextSibling} is not {@code null}.
*/
public void setNode(Node node) {
// does the corrent parent/child relationship exist?
// does the correct parent/child relationship exist?
if (nextSibling != null) {
// cannot be a sibling of a null node
if (node == null) {
@ -289,7 +289,7 @@ public class DOMResult implements Result {
*/
public void setNextSibling(Node nextSibling) {
// does the corrent parent/child relationship exist?
// does the correct parent/child relationship exist?
if (nextSibling != null) {
// cannot be a sibling of a null node
if (node == null) {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2016, 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
@ -34,7 +34,7 @@ import org.w3c.dom.Node;
* form of a Document Object Model (DOM) tree.</p>
*
* <p>Note that XSLT requires namespace support. Attempting to transform a DOM
* that was not contructed with a namespace-aware parser may result in errors.
* that was not constructed with a namespace-aware parser may result in errors.
* Parsers can be made namespace aware by calling
* {@link javax.xml.parsers.DocumentBuilderFactory#setNamespaceAware(boolean awareness)}.</p>
*

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2000, 2005, 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
@ -236,7 +236,7 @@ questions.
Transformer objects, serve as a factory for Templates objects, and manage
processor specific features.<br>
<i>Thread safety: </i>A
TransformerFactory may not perform mulitple concurrent
TransformerFactory may not perform multiple concurrent
operations.</p>
<p>
<b><a name="pattern-Templates">Templates</a></b>

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2005, 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.
*
* This code is free software; you can redistribute it and/or modify it
@ -129,7 +129,7 @@ public abstract class TypeInfoProvider {
* to be ID.
*
* <p>
* Exacly how an attribute is "determined to be ID" is up to the
* Exactly how an attribute is "determined to be ID" is up to the
* schema language. In case of W3C XML Schema, this means
* that the actual type of the attribute is the built-in ID type
* or its derived type.

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2018, 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.
*
* This code is free software; you can redistribute it and/or modify it
@ -73,7 +73,7 @@
* some of which are:
*
* <ul>
* <li><strong>Support for additional schema langauges.</strong>
* <li><strong>Support for additional schema languages.</strong>
* The JAXP parser implementations support only a subset of the available
* XML schema languages. The Validation API provides a standard mechanism
* through which applications may take of advantage of specialization

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -245,7 +245,7 @@ class XPathFactoryFinder {
}
}
// use approprite ClassLoader
// use appropriate ClassLoader
try {
if (classLoader != null && !internal) {
clazz = Class.forName(className, false, classLoader);

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -239,7 +239,7 @@
* <p>
* The return type is specified by a {@link javax.xml.namespace.QName} parameter
* in method call used to evaluate the expression, which is either a call to
* {@code XPathExpression.evalute(...)} or {@code XPath.evaluate(...)}
* {@code XPathExpression.evaluate(...)} or {@code XPath.evaluate(...)}
* methods.
*
* <p>

View File

@ -61,7 +61,7 @@ package org.w3c.dom;
* therefore possible to have the character sequence <code>"]]&gt;"</code>
* in the content, which is illegal in a CDATA section per section 2.7 of [<a href='http://www.w3.org/TR/2004/REC-xml-20040204'>XML 1.0</a>]. The
* presence of this character sequence must generate a fatal error during
* serialization or the cdata section must be splitted before the
* serialization or the cdata section must be split before the
* serialization (see also the parameter <code>"split-cdata-sections"</code>
* in the <code>DOMConfiguration</code> interface).
* <p ><b>Note:</b> Because no markup is recognized within a

View File

@ -372,7 +372,7 @@ public interface LSParser {
* @return If the <code>LSParser</code> is a synchronous
* <code>LSParser</code>, the newly created and populated
* <code>Document</code> is returned, or <code>null</code> if an error
* occured. If the <code>LSParser</code> is asynchronous,
* occurred. If the <code>LSParser</code> is asynchronous,
* <code>null</code> is returned since the document object may not yet
* be constructed when this method returns.
* @exception DOMException

View File

@ -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
@ -76,7 +76,7 @@ public class HandlerBase
* in a subclass to do special translations such as catalog lookups
* or URI redirection.</p>
*
* @param publicId The public identifer, or null if none is
* @param publicId The public identifier, or null if none is
* available.
* @param systemId The system identifier provided in the XML
* document.

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2020, 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.
*
* This code is free software; you can redistribute it and/or modify it
@ -118,7 +118,7 @@ public interface EntityResolver2 extends EntityResolver
* other reasons adopt a "no DTDs" policy.
* Non-validation motives include forcing documents to include DTDs so
* that attributes are handled consistently.
* For example, an XPath processor needs to know which attibutes have
* For example, an XPath processor needs to know which attributes have
* type "ID" before it can process a widely used type of reference.
*
* <p><strong>Warning:</strong> Returning an external subset modifies

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2020, 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.
*
* This code is free software; you can redistribute it and/or modify it
@ -91,7 +91,7 @@ import java.util.Arrays;
* Other lane-wise operations, such as the {@code min} operator, are defined as a
* partially serviced (not a full-service) named operation, where a corresponding
* method on {@code Vector} and/or a subclass provide some but all possible
* overloadings and overrides (commonly the unmasked varient with scalar-broadcast
* overloadings and overrides (commonly the unmasked variant with scalar-broadcast
* overloadings).
*
* Finally, all lane-wise operations (those named as previously described,
@ -2442,7 +2442,7 @@ public abstract class Vector<E> extends jdk.internal.vm.vector.VectorSupport.Vec
*
* @param origin the first input lane to transfer into the slice
* @return the last {@code VLENGTH-origin} input lanes,
* placed starting in the first lane of the ouput,
* placed starting in the first lane of the output,
* padded at the end with zeroes
* @throws ArrayIndexOutOfBoundsException if {@code origin}
* is negative or greater than {@code VLENGTH}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2020, 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.
*
* This code is free software; you can redistribute it and/or modify it
@ -92,7 +92,7 @@
* Other lane-wise operations, such as the {@code min} operator, are defined as a
* partially serviced (not a full-service) named operation, where a corresponding
* method on {@code Vector} and/or a subclass provide some but all possible
* overloadings and overrides (commonly the unmasked varient with scalar-broadcast
* overloadings and overrides (commonly the unmasked variant with scalar-broadcast
* overloadings).
*
* Finally, all lane-wise operations (those named as previously described,

View File

@ -249,7 +249,7 @@ public final class StripNativeDebugSymbolsPlugin extends AbstractPlugin {
private void validateStripArg(String stripArg) throws IllegalArgumentException {
try {
Path strip = Paths.get(stripArg); // verify it's a resonable path
Path strip = Paths.get(stripArg); // verify it's a reasonable path
if (!Files.isExecutable(strip)) {
throw new IllegalArgumentException(
getMessage(NAME + ".invalidstrip",

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -143,7 +143,7 @@ public final class ImagePluginStack {
private List<String> getSortedStrings() {
Stream<java.util.Map.Entry<String, Integer>> stream
= stringsUsage.entrySet().stream();
// Remove strings that have a single occurence
// Remove strings that have a single occurrence
List<String> result = stream.sorted(Comparator.comparing(e -> e.getValue(),
Comparator.reverseOrder())).filter((e) -> {
return e.getValue() > 1;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 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.
*
* This code is free software; you can redistribute it and/or modify it
@ -82,7 +82,7 @@ import jdk.internal.jimage.ImageStringsReader;
* size N. If this situation occurs then the size of the table is
* adjusted so that keys distribute differently.
*
* Readers algoritm;
* Readers algorithm;
*
* - Compute the hash for the key using the fixed base value modulo N. This
* will provide an index into the redirect table. The integer value in the

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -27,7 +27,7 @@ package jdk.tools.jlink.internal;
import java.util.List;
/**
* Plugin wishing to post-proces must implement this interface. PostProcessors
* Plugin wishing to post-process must implement this interface. PostProcessors
* are called once the image has been generated and is executable.
**/
public interface PostProcessor {

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -306,7 +306,7 @@ public final class TaskHelper {
// make sure that more than one plugin does not use the same option!
if (optionsSeen.contains(option)) {
throw new BadArgs("err.plugin.mutiple.options",
throw new BadArgs("err.plugin.multiple.options",
option);
}
optionsSeen.add(option);
@ -433,7 +433,7 @@ public final class TaskHelper {
List<Map<String, String>> argsMaps = entry.getValue();
// same plugin option may be used multiple times in command line.
// we call configure once for each occurrence. It is upto the plugin
// we call configure once for each occurrence. It is up to the plugin
// to 'merge' and/or 'override' arguments.
for (Map<String, String> map : argsMaps) {
try {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2020, 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.
*
* This code is free software; you can redistribute it and/or modify it
@ -45,7 +45,7 @@ public interface Plugin {
* <li>MODULEINFO_TRANSFORMER: Transform only module-info.class</li>
* <li>SORTER: Sort resources within the resource container.</li>
* <li>METAINFO_ADDER: Added meta info (like release, copyright etc.)</li>
* <li>COMPRESSOR: Compress resource within the resouce containers.</li>
* <li>COMPRESSOR: Compress resource within the resource containers.</li>
* <li>VERIFIER: Does some image verification.</li>
* <li>PROCESSOR: Does some post processing on image.</li>
* <li>PACKAGER: Final processing</li>

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.
#
# This code is free software; you can redistribute it and/or modify it
@ -363,7 +363,7 @@ err.no.such.plugin=No such plugin: {0}
err.provider.not.functional=The provider {0} is not functional.
err.plugin.mutiple.options=More than one plugin enabled by {0} option
err.plugin.multiple.options=More than one plugin enabled by {0} option
err.plugin.conflicts={0} ({1}) conflicts with {2}. Please use one or the other, but not both.
err.provider.additional.arg.error=Error in additional argument specification in {0} option: {1}

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.
#
# This code is free software; you can redistribute it and/or modify it
@ -207,7 +207,7 @@ err.no.such.plugin=Plug-in nicht vorhanden: {0}
err.provider.not.functional=Der Provider {0} ist nicht funktionsf\u00E4hig.
err.plugin.mutiple.options=Mehrere Plug-ins aktiviert von Option {0}
err.plugin.multiple.options=Mehrere Plug-ins aktiviert von Option {0}
err.plugin.conflicts={0} ({1}) steht im Konflikt mit {2}. Verwenden Sie nur eine der Optionen, nicht beide.
err.provider.additional.arg.error=Fehler bei der Angabe eines zus\u00E4tzlichen Arguments in der {0}-Option: {1}

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.
#
# This code is free software; you can redistribute it and/or modify it
@ -207,7 +207,7 @@ err.no.such.plugin=\u3053\u306E\u3088\u3046\u306A\u30D7\u30E9\u30B0\u30A4\u30F3\
err.provider.not.functional=\u30D7\u30ED\u30D0\u30A4\u30C0{0}\u306F\u6A5F\u80FD\u3057\u3066\u3044\u307E\u305B\u3093\u3002
err.plugin.mutiple.options=\u8907\u6570\u306E\u30D7\u30E9\u30B0\u30A4\u30F3\u304C{0}\u30AA\u30D7\u30B7\u30E7\u30F3\u306B\u3088\u3063\u3066\u6709\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059
err.plugin.multiple.options=\u8907\u6570\u306E\u30D7\u30E9\u30B0\u30A4\u30F3\u304C{0}\u30AA\u30D7\u30B7\u30E7\u30F3\u306B\u3088\u3063\u3066\u6709\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059
err.plugin.conflicts={0} ({1})\u304C{2}\u3068\u77DB\u76FE\u3057\u3066\u3044\u307E\u3059\u3002\u3044\u305A\u308C\u304B\u4E00\u65B9\u3092\u4F7F\u7528\u3057\u3001\u4E21\u65B9\u3092\u4F7F\u7528\u3057\u306A\u3044\u3067\u304F\u3060\u3055\u3044\u3002
err.provider.additional.arg.error={0}\u30AA\u30D7\u30B7\u30E7\u30F3\u306E\u8FFD\u52A0\u306E\u5F15\u6570\u6307\u5B9A\u306B\u30A8\u30E9\u30FC\u304C\u3042\u308A\u307E\u3059: {1}

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.
#
# This code is free software; you can redistribute it and/or modify it
@ -207,7 +207,7 @@ err.no.such.plugin=\u6CA1\u6709\u8FD9\u6837\u7684\u63D2\u4EF6\uFF1A{0}
err.provider.not.functional=\u63D0\u4F9B\u65B9 {0} \u4E0D\u8D77\u4F5C\u7528\u3002
err.plugin.mutiple.options={0} \u9009\u9879\u542F\u7528\u4E86\u591A\u4E2A\u63D2\u4EF6
err.plugin.multiple.options={0} \u9009\u9879\u542F\u7528\u4E86\u591A\u4E2A\u63D2\u4EF6
err.plugin.conflicts={0} ({1}) \u4E0E {2} \u51B2\u7A81\u3002\u8BF7\u4F7F\u7528\u5176\u4E2D\u7684\u4EFB\u610F\u4E00\u4E2A\uFF0C\u4F46\u4E0D\u80FD\u540C\u65F6\u4F7F\u7528\u4E8C\u8005\u3002
err.provider.additional.arg.error={0} \u9009\u9879\u4E2D\u7684\u5176\u4ED6\u53C2\u6570\u89C4\u8303\u6709\u8BEF\uFF1A{1}

View File

@ -82,7 +82,7 @@ final class DesktopIntegration extends ShellCustomAction {
// Need desktop and icon files if one of conditions is met:
// - there are file associations configured
// - user explicitely requested to create a shortcut
// - user explicitly requested to create a shortcut
boolean withDesktopFile = !associations.isEmpty() || LINUX_SHORTCUT_HINT.fetchFrom(params);
var curIconResource = LinuxAppImageBuilder.createIconResource(DEFAULT_ICON,
@ -310,7 +310,7 @@ final class DesktopIntegration extends ShellCustomAction {
// Add manual cleanup of system files to get rid of
// the default mime type handlers.
//
// Even after mime type is unregisterd with `xdg-mime uninstall`
// Even after mime type is unregistered with `xdg-mime uninstall`
// command and desktop file deleted with `xdg-desktop-menu uninstall`
// command, records in
// `/usr/share/applications/defaults.list` (Ubuntu 16) or

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2021, 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
@ -97,7 +97,7 @@ void launchApp() {
if (thisHash != hash) {
// This launcher execution is the result of execve() call from
// withing JVM.
// within JVM.
// This means all JVM arguments are already configured in launcher
// process command line.
// No need to construct command line for JVM.

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -56,7 +56,7 @@ public class MacDmgBundler extends MacBaseInstallerBundler {
// Background image name in resources
static final String DEFAULT_BACKGROUND_IMAGE = "background_dmg.tiff";
// Backround image name and folder under which it will be stored in DMG
// Background image name and folder under which it will be stored in DMG
static final String BACKGROUND_IMAGE_FOLDER =".background";
static final String BACKGROUND_IMAGE = "background.tiff";
static final String DEFAULT_DMG_SETUP_SCRIPT = "DMGsetup.scpt";
@ -117,7 +117,7 @@ public class MacDmgBundler extends MacBaseInstallerBundler {
Path volumePath = rootPath.resolve(APP_NAME.fetchFrom(params));
String volumeUrl = volumePath.toUri().toString() + File.separator;
// Provide full path to backround image, so we can find it.
// Provide full path to background image, so we can find it.
Path bgFile = Path.of(rootPath.toString(), APP_NAME.fetchFrom(params),
BACKGROUND_IMAGE_FOLDER, BACKGROUND_IMAGE);
@ -397,7 +397,7 @@ public class MacDmgBundler extends MacBaseInstallerBundler {
// We will not consider setting background image and creating link
// to install-dir in DMG as critical error, since it can fail in
// headless enviroment.
// headless environment.
try {
pb = new ProcessBuilder("/usr/bin/osascript",
getConfig_VolumeScript(params).toAbsolutePath().toString());

View File

@ -400,7 +400,7 @@ public class MacPkgBundler extends MacBaseInstallerBundler {
// will be included as well. It does have "--filter" option which use regex
// to exclude files/folder, but it will overwrite default one which excludes
// based on doc "any .svn or CVS directories, and any .DS_Store files".
// So easy aproach will be to copy user provided app-image into temp folder
// So easy approach will be to copy user provided app-image into temp folder
// if root path contains other files.
private String getRoot(Map<String, ? super Object> params,
Path appLocation) throws IOException {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2020, 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.
*
* This code is free software; you can redistribute it and/or modify it
@ -53,7 +53,7 @@ public class BundleParams {
}
// NOTE: we do not care about application parameters here
// as they will be embeded into jar file manifest and
// as they will be embedded into jar file manifest and
// java launcher will take care of them!
public Map<String, ? super Object> getBundleParamsAsMap() {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 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
@ -51,7 +51,7 @@ class I18N {
PLATFORM = ResourceBundle.getBundle(
"jdk.jpackage.internal.resources.MacResources");
} else {
throw new IllegalStateException("Unknwon platform");
throw new IllegalStateException("Unknown platform");
}
}
}

View File

@ -307,7 +307,7 @@ final class OverridableResource {
// Order substitution data by the length of keys.
// Longer keys go first.
// This is needed to properly handle cases when one key is
// a subtring of another and try the later first.
// a substring of another and try the later first.
var orderedEntries = substitutionData.entrySet().stream()
.sorted(Map.Entry.<String, String>comparingByKey(
Comparator.comparingInt(String::length)).reversed())
@ -321,7 +321,7 @@ final class OverridableResource {
String newResult = result.replace(entry.getKey(),
Optional.ofNullable(entry.getValue()).orElse(""));
if (!newResult.equals(result)) {
// Substitution occured.
// Substitution occurred.
// Remove the matching substitution key from the list and
// go over the list of substitution entries again.
if (workEntries == orderedEntries) {

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2017, 2020, 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.
#
# This code is free software; you can redistribute it and/or modify it
@ -101,7 +101,7 @@ ERR_InvalidAppName=Error: Invalid Application name: {0}
ERR_InvalidSLName=Error: Invalid Add Launcher name: {0}
ERR_IconFileNotExit=Error: Specified icon file [{0}] does not exist
ERR_LicenseFileNotExit=Error: Specified license file does not exist
ERR_BuildRootInvalid=Error: temp ({0}) must be non-existant or empty directory
ERR_BuildRootInvalid=Error: temp ({0}) must be non-existent or empty directory
ERR_InvalidOption=Error: Invalid Option: [{0}]
ERR_InvalidInstallerType=Error: Invalid or unsupported type: [{0}]
ERR_BothMainJarAndModule=Error: Cannot have both --main-jar and --module Options

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, 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
@ -148,7 +148,7 @@ private:
CfgFile::Properties& sectionData;
};
} // namepsace
} // namespace
CfgFile CfgFile::load(const tstring& path) {
std::ifstream input(path.c_str());

View File

@ -103,7 +103,7 @@ class WixAppImageFragmentBuilder extends WixFragmentBuilder {
// Want absolute paths to source files in generated WiX sources.
// This is to handle scenario if sources would be processed from
// differnt current directory.
// different current directory.
appImage = layout.resolveAt(appImageRoot.toAbsolutePath().normalize());
} while (false);

View File

@ -22,7 +22,7 @@ Value of `InstallerVersion` attribute of `Package` WiX element. Default value is
Should be defined to enable downgrades and undefined to disable downgrades.
By default it is defined for applications and undefined for Runtime installer.
Use <?define JpAllowUpgrades = "foo" ?> to enable or <?undef JpAllowUpgrades?>
to disable (the value doesn't mater).
to disable (the value doesn't matter).
- JpAllowUpgrades
Should be defined to enable upgrades and undefined to disable upgrades.

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 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
@ -80,7 +80,7 @@ LPVOID Resource::getPtr(DWORD &size) const
{
// LoadString returns the same result if value is zero-length or
// if if the value does not exists,
// so wee need to ensure the stringtable exists
// so we need to ensure the stringtable exists
HRSRC resInfo = findResource();
if (resInfo == NULL) {
JP_THROW(SysError(getErrMsg("cannot find resource"), FindResource));

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.
*
* This code is free software; you can redistribute it and/or modify it
@ -88,7 +88,7 @@ tstring getModulePath(HMODULE h)
}
if (len == 0) {
// error occured
// error occurred
JP_THROW(SysError("GetModuleFileName failed", GetModuleFileName));
}
return tstring(buf.begin(), buf.begin() + len);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, 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
@ -88,7 +88,7 @@ extern "C" {
JP_TRY;
if (key != jdk_jpackage_internal_WindowsRegistry_HKEY_LOCAL_MACHINE) {
JP_THROW("Inavlid Windows registry key id");
JP_THROW("Invalid Windows registry key id");
}
const std::wstring subKey = jni::toUnicodeString(pEnv, jSubKey);
@ -126,7 +126,7 @@ extern "C" {
JP_TRY;
if (key != jdk_jpackage_internal_WindowsRegistry_HKEY_LOCAL_MACHINE) {
JP_THROW("Inavlid Windows registry key id");
JP_THROW("Invalid Windows registry key id");
}
const std::wstring subKey = jni::toUnicodeString(pEnv, jSubKey);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2006, 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
@ -88,7 +88,7 @@ public abstract class JSObject {
* "this.name" in JavaScript.
*
* @param name The name of the JavaScript property to be accessed.
* @return The value of the propery.
* @return The value of the property.
* @throws JSException when an error is reported from the browser or
* JavaScript engine.
*/
@ -99,7 +99,7 @@ public abstract class JSObject {
* "this.name = value" in JavaScript.
*
* @param name The name of the JavaScript property to be accessed.
* @param value The value of the propery.
* @param value The value of the property.
* @throws JSException when an error is reported from the browser or
* JavaScript engine.
*/

View File

@ -623,7 +623,7 @@ public class DnsClient {
}
//
// xid mis-match: enqueue the response, it may belong to some other
// xid mismatch: enqueue the response, it may belong to some other
// thread that has not yet had a chance to read its response.
// enqueue only the first response, responses for retries are ignored.
//

View File

@ -48,7 +48,7 @@ package org.w3c.dom.css;
* use the STYLE attribute in the same way). The expectation is that an
* instance of the ElementCSSInlineStyle interface can be obtained by using
* binding-specific casting methods on an instance of the Element interface
* when the element supports inline CSS style informations.
* when the element supports inline CSS style information.
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
* @since 1.4, DOM Level 2
*/

View File

@ -868,7 +868,7 @@ class ZipFileSystem extends FileSystem {
}
private 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) {
if (option == null)
throw new NullPointerException();
@ -3027,7 +3027,7 @@ class ZipFileSystem extends FileSystem {
}
if (elenEXTT != 0) {
writeShort(os, EXTID_EXTT);
writeShort(os, elenEXTT - 4);// size for the folowing data block
writeShort(os, elenEXTT - 4);// size for the following data block
int fbyte = 0x1;
if (atime != -1) // mtime and atime
fbyte |= 0x2;

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