From e68024c2d28d634ebfde7f2fdcc35f5d7b07d704 Mon Sep 17 00:00:00 2001 From: Magnus Ihse Bursie Date: Tue, 17 May 2022 12:10:48 +0000 Subject: [PATCH] 8285485: Fix typos in corelibs Reviewed-by: jpai, sundar, naoto, lancea --- .../jdk/internal/foreign/abi/Binding.java | 6 +-- .../classes/java/util/logging/LogManager.java | 2 +- .../classes/java/util/logging/Logger.java | 4 +- .../java/util/logging/XMLFormatter.java | 4 +- .../com/sun/jndi/ldap/pool/PoolCallback.java | 4 +- .../jndi/toolkit/ctx/AtomicDirContext.java | 4 +- .../jndi/toolkit/ctx/ComponentDirContext.java | 4 +- .../dir/LazySearchEnumerationImpl.java | 4 +- .../sun/jndi/toolkit/dir/SearchFilter.java | 8 +-- .../naming/directory/BasicAttributes.java | 4 +- .../java/util/prefs/WindowsPreferences.java | 4 +- .../classes/java/rmi/MarshalledObject.java | 4 +- .../java/rmi/server/LoaderHandler.java | 4 +- .../java/rmi/server/RMIClassLoader.java | 4 +- .../java/rmi/server/RMIClassLoaderSpi.java | 4 +- .../share/classes/sun/rmi/log/LogHandler.java | 8 +-- .../classes/sun/rmi/server/LoaderHandler.java | 6 +-- .../classes/sun/rmi/server/UnicastRef.java | 4 +- .../share/classes/sun/rmi/transport/GC.java | 6 +-- .../sun/rmi/transport/tcp/TCPEndpoint.java | 6 +-- .../javax/script/SimpleScriptContext.java | 4 +- .../com/sun/rowset/CachedRowSetImpl.java | 50 +++++++++---------- .../com/sun/rowset/FilteredRowSetImpl.java | 6 +-- .../sun/rowset/JdbcRowSetResourceBundle.java | 4 +- .../com/sun/rowset/JoinRowSetImpl.java | 48 +++++++++--------- .../rowset/RowSetResourceBundle.properties | 2 +- .../rowset/internal/CachedRowSetWriter.java | 10 ++-- .../sun/rowset/internal/SyncResolverImpl.java | 34 ++++++------- .../rowset/internal/WebRowSetXmlWriter.java | 4 +- .../internal/XmlReaderContentHandler.java | 4 +- .../providers/RIOptimisticProvider.java | 8 +-- .../sun/rowset/providers/RIXMLProvider.java | 10 ++-- .../sql/SQLFeatureNotSupportedException.java | 4 +- .../javax/transaction/xa/XAException.java | 4 +- .../javax/transaction/xa/XAResource.java | 4 +- .../java_cup/internal/runtime/lr_parser.java | 2 +- .../internal/runtime/virtual_parse_stack.java | 4 +- .../xml/internal/stream/XMLEntityReader.java | 4 +- .../internal/stream/XMLInputFactoryImpl.java | 4 +- .../internal/stream/dtd/DTDGrammarUtil.java | 4 +- .../stream/dtd/nonvalidating/DTDGrammar.java | 4 +- .../stream/events/CharacterEvent.java | 8 +-- .../xml/internal/stream/events/DTDEvent.java | 6 +-- .../stream/events/EntityDeclarationImpl.java | 4 +- .../events/ProcessingInstructionEvent.java | 4 +- .../stream/events/XMLEventAllocatorImpl.java | 4 +- .../stream/events/XMLEventFactoryImpl.java | 4 +- .../stream/writers/WriterUtility.java | 6 +-- .../stream/writers/XMLDOMWriterImpl.java | 8 +-- .../stream/writers/XMLStreamWriterImpl.java | 12 ++--- .../internal/stream/writers/XMLWriter.java | 8 +-- .../javax/xml/catalog/CatalogMessages.java | 4 +- .../javax/xml/stream/XMLStreamException.java | 12 ++--- .../javax/xml/stream/XMLStreamReader.java | 2 +- .../javax/xml/stream/XMLStreamWriter.java | 6 +-- .../xml/stream/events/EntityDeclaration.java | 4 +- .../javax/xml/transform/OutputKeys.java | 4 +- .../javax/xml/transform/Transformer.java | 4 +- .../xml/transform/TransformerFactory.java | 4 +- .../javax/xml/transform/dom/DOMResult.java | 10 ++-- .../javax/xml/transform/dom/DOMSource.java | 4 +- .../classes/javax/xml/transform/overview.html | 4 +- .../xml/validation/TypeInfoProvider.java | 4 +- .../javax/xml/validation/package-info.java | 4 +- .../javax/xml/xpath/XPathFactoryFinder.java | 4 +- .../classes/javax/xml/xpath/package-info.java | 4 +- .../classes/org/w3c/dom/CDATASection.java | 2 +- .../classes/org/w3c/dom/ls/LSParser.java | 2 +- .../classes/org/xml/sax/HandlerBase.java | 4 +- .../org/xml/sax/ext/EntityResolver2.java | 4 +- .../classes/jdk/incubator/vector/Vector.java | 6 +-- .../jdk/incubator/vector/package-info.java | 4 +- .../StripNativeDebugSymbolsPlugin.java | 2 +- .../jlink/internal/ImagePluginStack.java | 4 +- .../jlink/internal/PerfectHashBuilder.java | 4 +- .../tools/jlink/internal/PostProcessor.java | 4 +- .../jdk/tools/jlink/internal/TaskHelper.java | 6 +-- .../jdk/tools/jlink/plugin/Plugin.java | 4 +- .../tools/jlink/resources/plugins.properties | 4 +- .../jlink/resources/plugins_de.properties | 4 +- .../jlink/resources/plugins_ja.properties | 6 +-- .../jlink/resources/plugins_zh_CN.properties | 6 +-- .../jpackage/internal/DesktopIntegration.java | 4 +- .../libapplauncher/LinuxLauncherLib.cpp | 4 +- .../jdk/jpackage/internal/MacDmgBundler.java | 8 +-- .../jdk/jpackage/internal/MacPkgBundler.java | 2 +- .../jdk/jpackage/internal/BundleParams.java | 4 +- .../classes/jdk/jpackage/internal/I18N.java | 4 +- .../internal/OverridableResource.java | 4 +- .../resources/MainResources.properties | 4 +- .../share/native/applauncher/CfgFile.cpp | 4 +- .../internal/WixAppImageFragmentBuilder.java | 2 +- .../jpackage/internal/resources/overrides.wxi | 2 +- .../windows/native/common/Resources.cpp | 4 +- .../windows/native/common/WinSysInfo.cpp | 4 +- .../native/libjpackage/WindowsRegistry.cpp | 6 +-- .../classes/netscape/javascript/JSObject.java | 6 +-- .../classes/com/sun/jndi/dns/DnsClient.java | 2 +- .../w3c/dom/css/ElementCSSInlineStyle.java | 2 +- .../classes/jdk/nio/zipfs/ZipFileSystem.java | 4 +- .../share/classes/jdk/nio/zipfs/ZipPath.java | 4 +- 101 files changed, 295 insertions(+), 295 deletions(-) diff --git a/src/java.base/share/classes/jdk/internal/foreign/abi/Binding.java b/src/java.base/share/classes/jdk/internal/foreign/abi/Binding.java index b5f1c012a7a..8581c8003e3 100644 --- a/src/java.base/share/classes/jdk/internal/foreign/abi/Binding.java +++ b/src/java.base/share/classes/jdk/internal/foreign/abi/Binding.java @@ -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() { diff --git a/src/java.logging/share/classes/java/util/logging/LogManager.java b/src/java.logging/share/classes/java/util/logging/LogManager.java index 2d277602a4a..39d35244c80 100644 --- a/src/java.logging/share/classes/java/util/logging/LogManager.java +++ b/src/java.logging/share/classes/java/util/logging/LogManager.java @@ -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; diff --git a/src/java.logging/share/classes/java/util/logging/Logger.java b/src/java.logging/share/classes/java/util/logging/Logger.java index 0dc602c2c24..04d1c1a9c33 100644 --- a/src/java.logging/share/classes/java/util/logging/Logger.java +++ b/src/java.logging/share/classes/java/util/logging/Logger.java @@ -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); } diff --git a/src/java.logging/share/classes/java/util/logging/XMLFormatter.java b/src/java.logging/share/classes/java/util/logging/XMLFormatter.java index a4f42248011..c0242686921 100644 --- a/src/java.logging/share/classes/java/util/logging/XMLFormatter.java +++ b/src/java.logging/share/classes/java/util/logging/XMLFormatter.java @@ -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("\n"); diff --git a/src/java.naming/share/classes/com/sun/jndi/ldap/pool/PoolCallback.java b/src/java.naming/share/classes/com/sun/jndi/ldap/pool/PoolCallback.java index 9f70ee77d1e..634953dd8a5 100644 --- a/src/java.naming/share/classes/com/sun/jndi/ldap/pool/PoolCallback.java +++ b/src/java.naming/share/classes/com/sun/jndi/ldap/pool/PoolCallback.java @@ -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 diff --git a/src/java.naming/share/classes/com/sun/jndi/toolkit/ctx/AtomicDirContext.java b/src/java.naming/share/classes/com/sun/jndi/toolkit/ctx/AtomicDirContext.java index f7fdba49c74..14dca7d5284 100644 --- a/src/java.naming/share/classes/com/sun/jndi/toolkit/ctx/AtomicDirContext.java +++ b/src/java.naming/share/classes/com/sun/jndi/toolkit/ctx/AtomicDirContext.java @@ -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, diff --git a/src/java.naming/share/classes/com/sun/jndi/toolkit/ctx/ComponentDirContext.java b/src/java.naming/share/classes/com/sun/jndi/toolkit/ctx/ComponentDirContext.java index 11b15044161..314f46305b7 100644 --- a/src/java.naming/share/classes/com/sun/jndi/toolkit/ctx/ComponentDirContext.java +++ b/src/java.naming/share/classes/com/sun/jndi/toolkit/ctx/ComponentDirContext.java @@ -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 diff --git a/src/java.naming/share/classes/com/sun/jndi/toolkit/dir/LazySearchEnumerationImpl.java b/src/java.naming/share/classes/com/sun/jndi/toolkit/dir/LazySearchEnumerationImpl.java index 62753e792f0..d2d110fbf85 100644 --- a/src/java.naming/share/classes/com/sun/jndi/toolkit/dir/LazySearchEnumerationImpl.java +++ b/src/java.naming/share/classes/com/sun/jndi/toolkit/dir/LazySearchEnumerationImpl.java @@ -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: * diff --git a/src/java.naming/share/classes/com/sun/jndi/toolkit/dir/SearchFilter.java b/src/java.naming/share/classes/com/sun/jndi/toolkit/dir/SearchFilter.java index 26e01a70c01..5bfa0b76a03 100644 --- a/src/java.naming/share/classes/com/sun/jndi/toolkit/dir/SearchFilter.java +++ b/src/java.naming/share/classes/com/sun/jndi/toolkit/dir/SearchFilter.java @@ -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; } diff --git a/src/java.naming/share/classes/javax/naming/directory/BasicAttributes.java b/src/java.naming/share/classes/javax/naming/directory/BasicAttributes.java index 47f2c8e1ddf..0e1dc83a521 100644 --- a/src/java.naming/share/classes/javax/naming/directory/BasicAttributes.java +++ b/src/java.naming/share/classes/javax/naming/directory/BasicAttributes.java @@ -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 attrs = new Hashtable<>(11); diff --git a/src/java.prefs/windows/classes/java/util/prefs/WindowsPreferences.java b/src/java.prefs/windows/classes/java/util/prefs/WindowsPreferences.java index 2979871aaac..f2a0f7eff6e 100644 --- a/src/java.prefs/windows/classes/java/util/prefs/WindowsPreferences.java +++ b/src/java.prefs/windows/classes/java/util/prefs/WindowsPreferences.java @@ -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. */ diff --git a/src/java.rmi/share/classes/java/rmi/MarshalledObject.java b/src/java.rmi/share/classes/java/rmi/MarshalledObject.java index 628a3172900..739d7aa28d4 100644 --- a/src/java.rmi/share/classes/java/rmi/MarshalledObject.java +++ b/src/java.rmi/share/classes/java/rmi/MarshalledObject.java @@ -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 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]) diff --git a/src/java.rmi/share/classes/java/rmi/server/LoaderHandler.java b/src/java.rmi/share/classes/java/rmi/server/LoaderHandler.java index 5ff1e38f831..b9397c6af81 100644 --- a/src/java.rmi/share/classes/java/rmi/server/LoaderHandler.java +++ b/src/java.rmi/share/classes/java/rmi/server/LoaderHandler.java @@ -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 Class object representing the loaded class * @throws MalformedURLException - * if the codebase paramater + * if the codebase parameter * contains an invalid URL * @throws ClassNotFoundException * if a definition for the class could not diff --git a/src/java.rmi/share/classes/java/rmi/server/RMIClassLoader.java b/src/java.rmi/share/classes/java/rmi/server/RMIClassLoader.java index 7ee253e5dc8..c2877a11eb3 100644 --- a/src/java.rmi/share/classes/java/rmi/server/RMIClassLoader.java +++ b/src/java.rmi/share/classes/java/rmi/server/RMIClassLoader.java @@ -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 codebase as the argument. * - *

If there is a security manger, its checkPermission + *

If there is a security manager, its checkPermission * method will be invoked with a * RuntimePermission("getClassLoader") permission; * this could result in a SecurityException. diff --git a/src/java.rmi/share/classes/java/rmi/server/RMIClassLoaderSpi.java b/src/java.rmi/share/classes/java/rmi/server/RMIClassLoaderSpi.java index 2b33377e112..fa4ffa728cf 100644 --- a/src/java.rmi/share/classes/java/rmi/server/RMIClassLoaderSpi.java +++ b/src/java.rmi/share/classes/java/rmi/server/RMIClassLoaderSpi.java @@ -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. * - *

If there is a security manger, its checkPermission + *

If there is a security manager, its checkPermission * method will be invoked with a * RuntimePermission("getClassLoader") permission; * this could result in a SecurityException. diff --git a/src/java.rmi/share/classes/sun/rmi/log/LogHandler.java b/src/java.rmi/share/classes/sun/rmi/log/LogHandler.java index 67ef3fa11a1..e6b59e54fcb 100644 --- a/src/java.rmi/share/classes/sun/rmi/log/LogHandler.java +++ b/src/java.rmi/share/classes/sun/rmi/log/LogHandler.java @@ -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 diff --git a/src/java.rmi/share/classes/sun/rmi/server/LoaderHandler.java b/src/java.rmi/share/classes/sun/rmi/server/LoaderHandler.java index 3a79e162e45..8b3586b40a0 100644 --- a/src/java.rmi/share/classes/sun/rmi/server/LoaderHandler.java +++ b/src/java.rmi/share/classes/sun/rmi/server/LoaderHandler.java @@ -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); diff --git a/src/java.rmi/share/classes/sun/rmi/server/UnicastRef.java b/src/java.rmi/share/classes/sun/rmi/server/UnicastRef.java index 326edf2590c..0e41b5615b5 100644 --- a/src/java.rmi/share/classes/sun/rmi/server/UnicastRef.java +++ b/src/java.rmi/share/classes/sun/rmi/server/UnicastRef.java @@ -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); diff --git a/src/java.rmi/share/classes/sun/rmi/transport/GC.java b/src/java.rmi/share/classes/sun/rmi/transport/GC.java index 4344460134c..f15a46beaca 100644 --- a/src/java.rmi/share/classes/sun/rmi/transport/GC.java +++ b/src/java.rmi/share/classes/sun/rmi/transport/GC.java @@ -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 { - /* 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 */ diff --git a/src/java.rmi/share/classes/sun/rmi/transport/tcp/TCPEndpoint.java b/src/java.rmi/share/classes/sun/rmi/transport/tcp/TCPEndpoint.java index 3495d3fab05..f261e367071 100644 --- a/src/java.rmi/share/classes/sun/rmi/transport/tcp/TCPEndpoint.java +++ b/src/java.rmi/share/classes/sun/rmi/transport/tcp/TCPEndpoint.java @@ -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(); } diff --git a/src/java.scripting/share/classes/javax/script/SimpleScriptContext.java b/src/java.scripting/share/classes/javax/script/SimpleScriptContext.java index b80500c03ee..5fcb0209107 100644 --- a/src/java.scripting/share/classes/javax/script/SimpleScriptContext.java +++ b/src/java.scripting/share/classes/javax/script/SimpleScriptContext.java @@ -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 diff --git a/src/java.sql.rowset/share/classes/com/sun/rowset/CachedRowSetImpl.java b/src/java.sql.rowset/share/classes/com/sun/rowset/CachedRowSetImpl.java index f9d6a0e64eb..3687c395560 100644 --- a/src/java.sql.rowset/share/classes/com/sun/rowset/CachedRowSetImpl.java +++ b/src/java.sql.rowset/share/classes/com/sun/rowset/CachedRowSetImpl.java @@ -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 com.sun.rowset.providers.RIOptimisticProvider. *

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

    *
  • ROWSET_SYNC_PROVIDER - the property specifying the @@ -459,7 +459,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern * software vendor. *
* More specific detailes are available in the SyncFactory - * and SyncProvider specificiations later in this document. + * and SyncProvider specifications later in this document. *

* @param env a Hashtable 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 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 { @@ -1108,7 +1108,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern /** * Returns a new RowSet object backed by the same data as * that of this 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 RowSet object that is a copy of this CachedRowSetImpl @@ -1285,7 +1285,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern /** * Converts this CachedRowSetImpl object to a collection - * of tables. The sample implementation utilitizes the TreeMap + * of tables. The sample implementation utilizes the 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. @@ -1312,7 +1312,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern /** * Returns the specified column of this CachedRowSetImpl object * as a Collection object. This method makes a copy of the - * column's data and utilitizes the Vector to establish the + * column's data and utilizes the Vector to establish the * collection. The 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. @@ -1348,7 +1348,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern /** * Returns the specified column of this CachedRowSetImpl object * as a Collection object. This method makes a copy of the - * column's data and utilitizes the Vector to establish the + * column's data and utilizes the Vector to establish the * collection. The 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. @@ -1734,7 +1734,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern * @param columnIndex the first column is 1, the second * is 2, and so on; must be 1 or larger * and equal to or less than the number of columns in the rowset - * @return the column value as a boolean in the Java progamming language; + * @return the column value as a boolean in the Java programming language; * if the value is SQL NULL, the result is 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 @@ -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 BINARY, VARBINARY or LONGVARBINARY - * 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 BINARY, VARBINARY or LONGVARBINARY - * 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 java.sql.Types * @return true if the given type is NUMERIC,' @@ -5985,7 +5985,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern /** * Retrieves the value of the designated column in this * CachedRowSetImpl object as an Array object - * in the Java programming langugage. + * in the Java programming language. * * @param colName a String 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 RowSetMetaData object. * * @param md a 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 */ @@ -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 setOriginal connot be reversed. + * Calls to the method setOriginal 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 CachedRowSetImpl warnings will * be chained to this SQLWarning. All RowSetWarnings * warnings are generated in the disconnected environment and remain a - * seperate warning chain to that provided by the getWarnings + * separate warning chain to that provided by the getWarnings * method. * *

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 ResultSet object containing the data * to be read into this CachedRowSetImpl object - * @param start the integer specifing the position in the + * @param start the integer specifying the position in the * ResultSet object to popultate the * CachedRowSetImpl 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. */ diff --git a/src/java.sql.rowset/share/classes/com/sun/rowset/FilteredRowSetImpl.java b/src/java.sql.rowset/share/classes/com/sun/rowset/FilteredRowSetImpl.java index 087a90840e2..fff699c3847 100644 --- a/src/java.sql.rowset/share/classes/com/sun/rowset/FilteredRowSetImpl.java +++ b/src/java.sql.rowset/share/classes/com/sun/rowset/FilteredRowSetImpl.java @@ -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. diff --git a/src/java.sql.rowset/share/classes/com/sun/rowset/JdbcRowSetResourceBundle.java b/src/java.sql.rowset/share/classes/com/sun/rowset/JdbcRowSetResourceBundle.java index aaf3a5bc6f2..9ed35e219e1 100644 --- a/src/java.sql.rowset/share/classes/com/sun/rowset/JdbcRowSetResourceBundle.java +++ b/src/java.sql.rowset/share/classes/com/sun/rowset/JdbcRowSetResourceBundle.java @@ -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") diff --git a/src/java.sql.rowset/share/classes/com/sun/rowset/JoinRowSetImpl.java b/src/java.sql.rowset/share/classes/com/sun/rowset/JoinRowSetImpl.java index 1be3f0697b4..24d0c991860 100644 --- a/src/java.sql.rowset/share/classes/com/sun/rowset/JoinRowSetImpl.java +++ b/src/java.sql.rowset/share/classes/com/sun/rowset/JoinRowSetImpl.java @@ -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 RowSet object instances * currently residing with the instance of the JoinRowSet * 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 Collection of the added RowSet * 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 JoinRowSet 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 JOIN or provide a textual description to assist * applications using a JoinRowSet. * - * @return whereClause a textual or SQL descripition of the logical - * WHERE cluase used in the JoinRowSet instance + * @return whereClause a textual or SQL description of the logical + * WHERE clause used in the JoinRowSet instance * @throws SQLException if an error occurs in generating a representation * of the WHERE clause. */ @@ -1769,7 +1769,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet { /** * Retrieves the value of the designated column in this * JoinRowSetImpl object as an Object in - * the Java programming lanugage, using the given + * the Java programming language, using the given * java.util.Map object to custom map the value if * appropriate. * @@ -2185,7 +2185,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet { * false will always be returned if it does not detect updates. * * @return true if the column updated - * false otherwse + * false 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 * JoinRowSetImpl object as a Ref object - * in the Java programming lanugage. + * in the Java programming language. * * @param columnIndex the first column is 1, the second * is 2, and so on; must be 1 or larger @@ -3446,7 +3446,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet { /** * Retrieves the value of the designated column in this * JoinRowSetImpl object as a Blob object - * in the Java programming lanugage. + * in the Java programming language. * * @param columnIndex the first column is 1, the second * is 2, and so on; must be 1 or larger @@ -3464,7 +3464,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet { /** * Retrieves the value of the designated column in this * JoinRowSetImpl object as a Clob object - * in the Java programming lanugage. + * in the Java programming language. * * @param columnIndex the first column is 1, the second * is 2, and so on; must be 1 or larger @@ -3482,7 +3482,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet { /** * Retrieves the value of the designated column in this * JoinRowSetImpl object as an Array object - * in the Java programming lanugage. + * in the Java programming language. * * @param columnIndex the first column is 1, the second * is 2, and so on; must be 1 or larger @@ -3503,7 +3503,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet { /** * Retrieves the value of the designated column in this * JoinRowSetImpl object as a Ref object - * in the Java programming lanugage. + * in the Java programming language. * * @param columnName a String 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 * JoinRowSetImpl object as a Blob object - * in the Java programming lanugage. + * in the Java programming language. * * @param columnName a String 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 * JoinRowSetImpl object as a Clob object - * in the Java programming lanugage. + * in the Java programming language. * * @param columnName a String 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 * JoinRowSetImpl object as an Array object - * in the Java programming lanugage. + * in the Java programming language. * * @param columnName a String 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 RowSetMetaData object. * * @param md a 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 */ @@ -4050,7 +4050,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet { * connection to the datasource * @throws SQLException if an invalid Connection 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 JoinRowSetImpl object to a collection - * of tables. The sample implementation utilitizes the TreeMap + * of tables. The sample implementation utilizes the 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. @@ -4246,7 +4246,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet { /** * Returns the specified column of this JoinRowSetImpl object * as a Collection object. This method makes a copy of the - * column's data and utilitizes the Vector to establish the + * column's data and utilizes the Vector to establish the * collection. The 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. @@ -4268,7 +4268,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet { /** * Returns the specified column of this JoinRowSetImpl object * as a Collection object. This method makes a copy of the - * column's data and utilitizes the Vector to establish the + * column's data and utilizes the Vector to establish the * collection. The 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. diff --git a/src/java.sql.rowset/share/classes/com/sun/rowset/RowSetResourceBundle.properties b/src/java.sql.rowset/share/classes/com/sun/rowset/RowSetResourceBundle.properties index f84ede5eb41..83738d94afd 100644 --- a/src/java.sql.rowset/share/classes/com/sun/rowset/RowSetResourceBundle.properties +++ b/src/java.sql.rowset/share/classes/com/sun/rowset/RowSetResourceBundle.properties @@ -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 diff --git a/src/java.sql.rowset/share/classes/com/sun/rowset/internal/CachedRowSetWriter.java b/src/java.sql.rowset/share/classes/com/sun/rowset/internal/CachedRowSetWriter.java index 21b9614d746..6e4d3671651 100644 --- a/src/java.sql.rowset/share/classes/com/sun/rowset/internal/CachedRowSetWriter.java +++ b/src/java.sql.rowset/share/classes/com/sun/rowset/internal/CachedRowSetWriter.java @@ -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); diff --git a/src/java.sql.rowset/share/classes/com/sun/rowset/internal/SyncResolverImpl.java b/src/java.sql.rowset/share/classes/com/sun/rowset/internal/SyncResolverImpl.java index bde850e9964..7fad769cb2d 100644 --- a/src/java.sql.rowset/share/classes/com/sun/rowset/internal/SyncResolverImpl.java +++ b/src/java.sql.rowset/share/classes/com/sun/rowset/internal/SyncResolverImpl.java @@ -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 {@code LONGVARBINARY}. - * 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 {@code LONGVARBINARY} - * 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. * *

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. diff --git a/src/java.sql.rowset/share/classes/com/sun/rowset/internal/WebRowSetXmlWriter.java b/src/java.sql.rowset/share/classes/com/sun/rowset/internal/WebRowSetXmlWriter.java index a252a272d27..91e3ce0d777 100644 --- a/src/java.sql.rowset/share/classes/com/sun/rowset/internal/WebRowSetXmlWriter.java +++ b/src/java.sql.rowset/share/classes/com/sun/rowset/internal/WebRowSetXmlWriter.java @@ -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. **/ diff --git a/src/java.sql.rowset/share/classes/com/sun/rowset/internal/XmlReaderContentHandler.java b/src/java.sql.rowset/share/classes/com/sun/rowset/internal/XmlReaderContentHandler.java index 40e42bca31b..e5f25f8a168 100644 --- a/src/java.sql.rowset/share/classes/com/sun/rowset/internal/XmlReaderContentHandler.java +++ b/src/java.sql.rowset/share/classes/com/sun/rowset/internal/XmlReaderContentHandler.java @@ -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 RowSet object. *

* 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. *

diff --git a/src/java.sql.rowset/share/classes/com/sun/rowset/providers/RIOptimisticProvider.java b/src/java.sql.rowset/share/classes/com/sun/rowset/providers/RIOptimisticProvider.java index 754c80603f5..334ef3db898 100644 --- a/src/java.sql.rowset/share/classes/com/sun/rowset/providers/RIOptimisticProvider.java +++ b/src/java.sql.rowset/share/classes/com/sun/rowset/providers/RIOptimisticProvider.java @@ -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. * - *

1.0 Backgroud

+ *

1.0 Background

* This synchronization provider is registered with the * SyncFactory by default as the * com.sun.rowset.providers.RIOptimisticProvider. @@ -47,7 +47,7 @@ import com.sun.rowset.internal.*; * interface implementations. As a reference implementation, * RIOptimisticProvider 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 RowSet implementation using the * RIOptimisticProvider can expect the writer to * check only rows that have been modified in the RowSet against @@ -171,7 +171,7 @@ public final class RIOptimisticProvider extends SyncProvider implements Serializ /** * Returns the SyncProvider grade of synchronization that * RowSet 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 RowSet * object. */ diff --git a/src/java.sql.rowset/share/classes/com/sun/rowset/providers/RIXMLProvider.java b/src/java.sql.rowset/share/classes/com/sun/rowset/providers/RIXMLProvider.java index d15516d4d63..189971a796a 100644 --- a/src/java.sql.rowset/share/classes/com/sun/rowset/providers/RIXMLProvider.java +++ b/src/java.sql.rowset/share/classes/com/sun/rowset/providers/RIXMLProvider.java @@ -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 SyncProvider grade of syncrhonization that * RowSet 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 SyncProvider syncronization grade of this + * @return the SyncProvider synchronization grade of this * provider; must be one of the following constants: *
      *          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 String detailing the vendor name of this
      *      SyncProvider
diff --git a/src/java.sql/share/classes/java/sql/SQLFeatureNotSupportedException.java b/src/java.sql/share/classes/java/sql/SQLFeatureNotSupportedException.java
index 867813af915..93a6eee7d1e 100644
--- a/src/java.sql/share/classes/java/sql/SQLFeatureNotSupportedException.java
+++ b/src/java.sql/share/classes/java/sql/SQLFeatureNotSupportedException.java
@@ -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 '0A'
  * ( 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:
  *
  *
    *
  • no support for an optional feature diff --git a/src/java.transaction.xa/share/classes/javax/transaction/xa/XAException.java b/src/java.transaction.xa/share/classes/javax/transaction/xa/XAException.java index a86472d7461..5d153cad4a0 100644 --- a/src/java.transaction.xa/share/classes/javax/transaction/xa/XAException.java +++ b/src/java.transaction.xa/share/classes/javax/transaction/xa/XAException.java @@ -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; diff --git a/src/java.transaction.xa/share/classes/javax/transaction/xa/XAResource.java b/src/java.transaction.xa/share/classes/javax/transaction/xa/XAResource.java index 476de7dbbec..a5f1c5c08a7 100644 --- a/src/java.transaction.xa/share/classes/javax/transaction/xa/XAResource.java +++ b/src/java.transaction.xa/share/classes/javax/transaction/xa/XAResource.java @@ -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 xares. + * resource manager instance represented by the parameter xares. * * @param xares An XAResource object whose resource manager instance * is to be compared with the resource manager instance of the diff --git a/src/java.xml/share/classes/com/sun/java_cup/internal/runtime/lr_parser.java b/src/java.xml/share/classes/com/sun/java_cup/internal/runtime/lr_parser.java index dd430da6dc0..d7ac9bd23c2 100644 --- a/src/java.xml/share/classes/com/sun/java_cup/internal/runtime/lr_parser.java +++ b/src/java.xml/share/classes/com/sun/java_cup/internal/runtime/lr_parser.java @@ -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. */ diff --git a/src/java.xml/share/classes/com/sun/java_cup/internal/runtime/virtual_parse_stack.java b/src/java.xml/share/classes/com/sun/java_cup/internal/runtime/virtual_parse_stack.java index fbcd0451e5d..6fe7a5b148c 100644 --- a/src/java.xml/share/classes/com/sun/java_cup/internal/runtime/virtual_parse_stack.java +++ b/src/java.xml/share/classes/com/sun/java_cup/internal/runtime/virtual_parse_stack.java @@ -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 */ diff --git a/src/java.xml/share/classes/com/sun/xml/internal/stream/XMLEntityReader.java b/src/java.xml/share/classes/com/sun/xml/internal/stream/XMLEntityReader.java index 9d7d671b8ca..06228797a47 100644 --- a/src/java.xml/share/classes/com/sun/xml/internal/stream/XMLEntityReader.java +++ b/src/java.xml/share/classes/com/sun/xml/internal/stream/XMLEntityReader.java @@ -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. *

    * Note: 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 diff --git a/src/java.xml/share/classes/com/sun/xml/internal/stream/XMLInputFactoryImpl.java b/src/java.xml/share/classes/com/sun/xml/internal/stream/XMLInputFactoryImpl.java index dc99ab40687..af2449542c7 100644 --- a/src/java.xml/share/classes/com/sun/xml/internal/stream/XMLInputFactoryImpl.java +++ b/src/java.xml/share/classes/com/sun/xml/internal/stream/XMLInputFactoryImpl.java @@ -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; diff --git a/src/java.xml/share/classes/com/sun/xml/internal/stream/dtd/DTDGrammarUtil.java b/src/java.xml/share/classes/com/sun/xml/internal/stream/dtd/DTDGrammarUtil.java index 566b5c05e78..548307e1f19 100644 --- a/src/java.xml/share/classes/com/sun/xml/internal/stream/dtd/DTDGrammarUtil.java +++ b/src/java.xml/share/classes/com/sun/xml/internal/stream/dtd/DTDGrammarUtil.java @@ -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. */ diff --git a/src/java.xml/share/classes/com/sun/xml/internal/stream/dtd/nonvalidating/DTDGrammar.java b/src/java.xml/share/classes/com/sun/xml/internal/stream/dtd/nonvalidating/DTDGrammar.java index fdd45efcf74..8c5ab9b2d3a 100644 --- a/src/java.xml/share/classes/com/sun/xml/internal/stream/dtd/nonvalidating/DTDGrammar.java +++ b/src/java.xml/share/classes/com/sun/xml/internal/stream/dtd/nonvalidating/DTDGrammar.java @@ -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 diff --git a/src/java.xml/share/classes/com/sun/xml/internal/stream/events/CharacterEvent.java b/src/java.xml/share/classes/com/sun/xml/internal/stream/events/CharacterEvent.java index 217d90ef097..2bae8e2a4f4 100644 --- a/src/java.xml/share/classes/com/sun/xml/internal/stream/events/CharacterEvent.java +++ b/src/java.xml/share/classes/com/sun/xml/internal/stream/events/CharacterEvent.java @@ -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 entites) { - fEntities = entites; + public void setEntities(List entities) { + fEntities = entities; } @Override diff --git a/src/java.xml/share/classes/com/sun/xml/internal/stream/events/EntityDeclarationImpl.java b/src/java.xml/share/classes/com/sun/xml/internal/stream/events/EntityDeclarationImpl.java index 638063283de..56635700ad9 100644 --- a/src/java.xml/share/classes/com/sun/xml/internal/stream/events/EntityDeclarationImpl.java +++ b/src/java.xml/share/classes/com/sun/xml/internal/stream/events/EntityDeclarationImpl.java @@ -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. */ diff --git a/src/java.xml/share/classes/com/sun/xml/internal/stream/events/ProcessingInstructionEvent.java b/src/java.xml/share/classes/com/sun/xml/internal/stream/events/ProcessingInstructionEvent.java index e1952b23d33..aaf3d2e3d64 100644 --- a/src/java.xml/share/classes/com/sun/xml/internal/stream/events/ProcessingInstructionEvent.java +++ b/src/java.xml/share/classes/com/sun/xml/internal/stream/events/ProcessingInstructionEvent.java @@ -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() { diff --git a/src/java.xml/share/classes/com/sun/xml/internal/stream/events/XMLEventAllocatorImpl.java b/src/java.xml/share/classes/com/sun/xml/internal/stream/events/XMLEventAllocatorImpl.java index a1e920af023..be317fe5e84 100644 --- a/src/java.xml/share/classes/com/sun/xml/internal/stream/events/XMLEventAllocatorImpl.java +++ b/src/java.xml/share/classes/com/sun/xml/internal/stream/events/XMLEventAllocatorImpl.java @@ -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 diff --git a/src/java.xml/share/classes/com/sun/xml/internal/stream/events/XMLEventFactoryImpl.java b/src/java.xml/share/classes/com/sun/xml/internal/stream/events/XMLEventFactoryImpl.java index 3e51fd370ca..dab0a1d3c90 100644 --- a/src/java.xml/share/classes/com/sun/xml/internal/stream/events/XMLEventFactoryImpl.java +++ b/src/java.xml/share/classes/com/sun/xml/internal/stream/events/XMLEventFactoryImpl.java @@ -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; diff --git a/src/java.xml/share/classes/com/sun/xml/internal/stream/writers/WriterUtility.java b/src/java.xml/share/classes/com/sun/xml/internal/stream/writers/WriterUtility.java index 942402cc8ce..47f85159c1c 100644 --- a/src/java.xml/share/classes/com/sun/xml/internal/stream/writers/WriterUtility.java +++ b/src/java.xml/share/classes/com/sun/xml/internal/stream/writers/WriterUtility.java @@ -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(); } } diff --git a/src/java.xml/share/classes/com/sun/xml/internal/stream/writers/XMLDOMWriterImpl.java b/src/java.xml/share/classes/com/sun/xml/internal/stream/writers/XMLDOMWriterImpl.java index 9aef726f6dd..677c66c0218 100644 --- a/src/java.xml/share/classes/com/sun/xml/internal/stream/writers/XMLDOMWriterImpl.java +++ b/src/java.xml/share/classes/com/sun/xml/internal/stream/writers/XMLDOMWriterImpl.java @@ -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} diff --git a/src/java.xml/share/classes/com/sun/xml/internal/stream/writers/XMLStreamWriterImpl.java b/src/java.xml/share/classes/com/sun/xml/internal/stream/writers/XMLStreamWriterImpl.java index ccd89589d49..3dbe4b24536 100644 --- a/src/java.xml/share/classes/com/sun/xml/internal/stream/writers/XMLStreamWriterImpl.java +++ b/src/java.xml/share/classes/com/sun/xml/internal/stream/writers/XMLStreamWriterImpl.java @@ -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 * 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 * 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 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 /** * 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 /** * 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 diff --git a/src/java.xml/share/classes/com/sun/xml/internal/stream/writers/XMLWriter.java b/src/java.xml/share/classes/com/sun/xml/internal/stream/writers/XMLWriter.java index ade4eafd382..64cfcbe3a7b 100644 --- a/src/java.xml/share/classes/com/sun/xml/internal/stream/writers/XMLWriter.java +++ b/src/java.xml/share/classes/com/sun/xml/internal/stream/writers/XMLWriter.java @@ -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 flush() 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 * size specified. Unless flush is called, it guarantees that * data in chunks of size equal to or more than size specified will be written. * @@ -64,9 +64,9 @@ public class XMLWriter extends Writer { } /** - * Creates the instnace of XMLWriter. + * Creates the instance of XMLWriter. * - * atleast buffers the input to the + * at least buffers the input to the * size specified. */ public XMLWriter(Writer writer, int size){ diff --git a/src/java.xml/share/classes/javax/xml/catalog/CatalogMessages.java b/src/java.xml/share/classes/javax/xml/catalog/CatalogMessages.java index 886044a6b64..b47a1d81b5d 100644 --- a/src/java.xml/share/classes/javax/xml/catalog/CatalogMessages.java +++ b/src/java.xml/share/classes/javax/xml/catalog/CatalogMessages.java @@ -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) { diff --git a/src/java.xml/share/classes/javax/xml/stream/XMLStreamException.java b/src/java.xml/share/classes/javax/xml/stream/XMLStreamException.java index 1b39aebd5bf..2cee1fc2489 100644 --- a/src/java.xml/share/classes/javax/xml/stream/XMLStreamException.java +++ b/src/java.xml/share/classes/javax/xml/stream/XMLStreamException.java @@ -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 diff --git a/src/java.xml/share/classes/javax/xml/stream/XMLStreamReader.java b/src/java.xml/share/classes/javax/xml/stream/XMLStreamReader.java index a40b4c9142b..6dfc2f2a4e0 100644 --- a/src/java.xml/share/classes/javax/xml/stream/XMLStreamReader.java +++ b/src/java.xml/share/classes/javax/xml/stream/XMLStreamReader.java @@ -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. * *
    Precondition: none *
    Postcondition: the current event is START_ELEMENT or END_ELEMENT diff --git a/src/java.xml/share/classes/javax/xml/stream/XMLStreamWriter.java b/src/java.xml/share/classes/javax/xml/stream/XMLStreamWriter.java index b81b8c9ca44..7cd383245a8 100644 --- a/src/java.xml/share/classes/javax/xml/stream/XMLStreamWriter.java +++ b/src/java.xml/share/classes/javax/xml/stream/XMLStreamWriter.java @@ -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 */ diff --git a/src/java.xml/share/classes/javax/xml/stream/events/EntityDeclaration.java b/src/java.xml/share/classes/javax/xml/stream/events/EntityDeclaration.java index 5edb683ad29..f6085fac4d1 100644 --- a/src/java.xml/share/classes/javax/xml/stream/events/EntityDeclaration.java +++ b/src/java.xml/share/classes/javax/xml/stream/events/EntityDeclaration.java @@ -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(); diff --git a/src/java.xml/share/classes/javax/xml/transform/OutputKeys.java b/src/java.xml/share/classes/javax/xml/transform/OutputKeys.java index ac1a0213239..83f4ff4e3fa 100644 --- a/src/java.xml/share/classes/javax/xml/transform/OutputKeys.java +++ b/src/java.xml/share/classes/javax/xml/transform/OutputKeys.java @@ -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 { *

    cdata-section-elements 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}.

    * * @see diff --git a/src/java.xml/share/classes/javax/xml/transform/Transformer.java b/src/java.xml/share/classes/javax/xml/transform/Transformer.java index a27908cc58e..5f6bd11eafc 100644 --- a/src/java.xml/share/classes/javax/xml/transform/Transformer.java +++ b/src/java.xml/share/classes/javax/xml/transform/Transformer.java @@ -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. diff --git a/src/java.xml/share/classes/javax/xml/transform/TransformerFactory.java b/src/java.xml/share/classes/javax/xml/transform/TransformerFactory.java index 55b4a8c2ce4..20470fa4ad8 100644 --- a/src/java.xml/share/classes/javax/xml/transform/TransformerFactory.java +++ b/src/java.xml/share/classes/javax/xml/transform/TransformerFactory.java @@ -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. * diff --git a/src/java.xml/share/classes/javax/xml/transform/dom/DOMResult.java b/src/java.xml/share/classes/javax/xml/transform/dom/DOMResult.java index c5461a4ef59..a352306c73a 100644 --- a/src/java.xml/share/classes/javax/xml/transform/dom/DOMResult.java +++ b/src/java.xml/share/classes/javax/xml/transform/dom/DOMResult.java @@ -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) { diff --git a/src/java.xml/share/classes/javax/xml/transform/dom/DOMSource.java b/src/java.xml/share/classes/javax/xml/transform/dom/DOMSource.java index 0627337cedb..b5adcb8eca1 100644 --- a/src/java.xml/share/classes/javax/xml/transform/dom/DOMSource.java +++ b/src/java.xml/share/classes/javax/xml/transform/dom/DOMSource.java @@ -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.

    * *

    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)}.

    * diff --git a/src/java.xml/share/classes/javax/xml/transform/overview.html b/src/java.xml/share/classes/javax/xml/transform/overview.html index 333eaf19fc0..d63bcf1528a 100644 --- a/src/java.xml/share/classes/javax/xml/transform/overview.html +++ b/src/java.xml/share/classes/javax/xml/transform/overview.html @@ -1,6 +1,6 @@