This is an automated email from the ASF dual-hosted git repository.

ebourg pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit a0a157abb1cc4b7bc16f87b693c3d851c7ec3431
Author: Emmanuel Bourg <ebo...@apache.org>
AuthorDate: Wed Sep 28 13:46:55 2022 +0200

    Fix the typos in the source code
---
 java/javax/servlet/descriptor/JspPropertyGroupDescriptor.java     | 2 +-
 java/org/apache/catalina/Context.java                             | 2 +-
 java/org/apache/catalina/mapper/MapperListener.java               | 4 ++--
 java/org/apache/catalina/servlets/CGIServlet.java                 | 2 +-
 java/org/apache/catalina/tribes/ByteMessage.java                  | 2 +-
 .../catalina/tribes/group/interceptors/TcpFailureDetector.java    | 2 +-
 .../catalina/tribes/group/interceptors/TcpPingInterceptor.java    | 2 +-
 .../tribes/group/interceptors/TwoPhaseCommitInterceptor.java      | 2 +-
 java/org/apache/catalina/tribes/membership/McastServiceImpl.java  | 4 ++--
 .../org/apache/catalina/webresources/AbstractFileResourceSet.java | 2 +-
 java/org/apache/coyote/ActionHook.java                            | 2 +-
 java/org/apache/coyote/RequestInfo.java                           | 2 +-
 java/org/apache/coyote/Response.java                              | 2 +-
 java/org/apache/coyote/http11/Http11Processor.java                | 2 +-
 java/org/apache/coyote/http2/AbstractNonZeroStream.java           | 6 +++---
 java/org/apache/jasper/compiler/Parser.java                       | 2 +-
 java/org/apache/jasper/compiler/ServletWriter.java                | 8 ++++----
 java/org/apache/jasper/tagplugins/jstl/core/ForEach.java          | 2 +-
 java/org/apache/naming/factory/webservices/ServiceRefFactory.java | 4 ++--
 java/org/apache/tomcat/dbcp/dbcp2/DelegatingConnection.java       | 2 +-
 java/org/apache/tomcat/util/net/jsse/JSSEKeyManager.java          | 4 ++--
 java/org/apache/tomcat/util/net/jsse/PEMFile.java                 | 2 +-
 java/org/apache/tomcat/util/threads/TaskQueue.java                | 2 +-
 .../src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java | 2 +-
 .../apache/tomcat/jdbc/pool/interceptor/AbstractQueryReport.java  | 2 +-
 .../src/test/java/org/apache/tomcat/jdbc/test/TestValidation.java | 2 +-
 .../catalina/loader/TestWebappClassLoaderExecutorMemoryLeak.java  | 2 +-
 test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java      | 8 ++++----
 test/org/apache/catalina/tribes/demos/MapDemo.java                | 2 +-
 test/org/apache/coyote/http11/TestHttp11Processor.java            | 2 +-
 test/org/apache/coyote/http2/Http2TestBase.java                   | 2 +-
 test/org/apache/coyote/http2/TestCancelledUpload.java             | 2 +-
 test/org/apache/tomcat/websocket/TestWsSubprotocols.java          | 2 +-
 33 files changed, 45 insertions(+), 45 deletions(-)

diff --git a/java/javax/servlet/descriptor/JspPropertyGroupDescriptor.java 
b/java/javax/servlet/descriptor/JspPropertyGroupDescriptor.java
index d690f326df..b84cd18d2f 100644
--- a/java/javax/servlet/descriptor/JspPropertyGroupDescriptor.java
+++ b/java/javax/servlet/descriptor/JspPropertyGroupDescriptor.java
@@ -85,7 +85,7 @@ public interface JspPropertyGroupDescriptor {
     public String getDeferredSyntaxAllowedAsLiteral();
 
     /**
-     * Should the JSPs in this group have template text that onyl contains
+     * Should the JSPs in this group have template text that only contains
      * whitespace removed?
      *
      * @return {@code true} if the whitespace be removed, otherwise
diff --git a/java/org/apache/catalina/Context.java 
b/java/org/apache/catalina/Context.java
index 329fd2e8d8..9215394bad 100644
--- a/java/org/apache/catalina/Context.java
+++ b/java/org/apache/catalina/Context.java
@@ -1843,7 +1843,7 @@ public interface Context extends Container, ContextBind {
 
     /**
      * Are paths used in calls to obtain a request dispatcher expected to be
-     * encoded? This applys to both how Tomcat handles calls to obtain a 
request
+     * encoded? This applies to both how Tomcat handles calls to obtain a 
request
      * dispatcher as well as how Tomcat generates paths used to obtain request
      * dispatchers internally.
      *
diff --git a/java/org/apache/catalina/mapper/MapperListener.java 
b/java/org/apache/catalina/mapper/MapperListener.java
index 2c0cc05582..80139206d4 100644
--- a/java/org/apache/catalina/mapper/MapperListener.java
+++ b/java/org/apache/catalina/mapper/MapperListener.java
@@ -512,7 +512,7 @@ public class MapperListener extends LifecycleMBeanBase
     /**
      * Add this mapper to the container and all child containers
      *
-     * @param container the container (and any associated childern) to which
+     * @param container the container (and any associated children) to which
      *        the mapper is to be added
      */
     private void addListeners(Container container) {
@@ -527,7 +527,7 @@ public class MapperListener extends LifecycleMBeanBase
     /**
      * Remove this mapper from the container and all child containers
      *
-     * @param container the container (and any associated childern) from which
+     * @param container the container (and any associated children) from which
      *        the mapper is to be removed
      */
     private void removeListeners(Container container) {
diff --git a/java/org/apache/catalina/servlets/CGIServlet.java 
b/java/org/apache/catalina/servlets/CGIServlet.java
index 89dd793fa2..902f138a59 100644
--- a/java/org/apache/catalina/servlets/CGIServlet.java
+++ b/java/org/apache/catalina/servlets/CGIServlet.java
@@ -1850,7 +1850,7 @@ public final class CGIServlet extends HttpServlet {
 
     /**
      * This is an input stream specifically for reading HTTP headers. It reads
-     * upto and including the two blank lines terminating the headers. It
+     * up to and including the two blank lines terminating the headers. It
      * allows the content to be read using bytes or characters as appropriate.
      */
     protected static class HTTPHeaderInputStream extends InputStream {
diff --git a/java/org/apache/catalina/tribes/ByteMessage.java 
b/java/org/apache/catalina/tribes/ByteMessage.java
index cd414aaec2..4560d87623 100644
--- a/java/org/apache/catalina/tribes/ByteMessage.java
+++ b/java/org/apache/catalina/tribes/ByteMessage.java
@@ -51,7 +51,7 @@ public class ByteMessage implements Externalizable {
     }
 
     /**
-     * Creates a byte message wit h
+     * Creates a byte message with
      * @param data byte[] - the message contents
      */
     public ByteMessage(byte[] data) {
diff --git 
a/java/org/apache/catalina/tribes/group/interceptors/TcpFailureDetector.java 
b/java/org/apache/catalina/tribes/group/interceptors/TcpFailureDetector.java
index 8e01d0ca2b..7e145138ce 100644
--- a/java/org/apache/catalina/tribes/group/interceptors/TcpFailureDetector.java
+++ b/java/org/apache/catalina/tribes/group/interceptors/TcpFailureDetector.java
@@ -113,7 +113,7 @@ public class TcpFailureDetector extends 
ChannelInterceptorBase implements TcpFai
                         
(!Arrays.equals(TCP_FAIL_DETECT,msg.getMessage().getBytes()) ) );
         }//end if
 
-        //ignore the message, it doesnt have the flag set
+        //ignore the message, it doesn't have the flag set
         if ( process ) {
             super.messageReceived(msg);
         } else if ( log.isDebugEnabled() ) {
diff --git 
a/java/org/apache/catalina/tribes/group/interceptors/TcpPingInterceptor.java 
b/java/org/apache/catalina/tribes/group/interceptors/TcpPingInterceptor.java
index 0be78ed547..0cddef05d5 100644
--- a/java/org/apache/catalina/tribes/group/interceptors/TcpPingInterceptor.java
+++ b/java/org/apache/catalina/tribes/group/interceptors/TcpPingInterceptor.java
@@ -178,7 +178,7 @@ public class TcpPingInterceptor extends 
ChannelInterceptorBase implements TcpPin
                         
(!Arrays.equals(TCP_PING_DATA,msg.getMessage().getBytes()) ) );
         }//end if
 
-        //ignore the message, it doesnt have the flag set
+        //ignore the message, it doesn't have the flag set
         if ( process ) {
             super.messageReceived(msg);
         } else if ( log.isDebugEnabled() ) {
diff --git 
a/java/org/apache/catalina/tribes/group/interceptors/TwoPhaseCommitInterceptor.java
 
b/java/org/apache/catalina/tribes/group/interceptors/TwoPhaseCommitInterceptor.java
index 6da57536d0..3efff8d874 100644
--- 
a/java/org/apache/catalina/tribes/group/interceptors/TwoPhaseCommitInterceptor.java
+++ 
b/java/org/apache/catalina/tribes/group/interceptors/TwoPhaseCommitInterceptor.java
@@ -64,7 +64,7 @@ public class TwoPhaseCommitInterceptor extends 
ChannelInterceptorBase {
             super.sendMessage(destination,confirmation,payload);
         } else {
             //turn off two phase commit
-            //this wont work if the interceptor has 0 as a flag
+            //this won't work if the interceptor has 0 as a flag
             //since there is no flag to turn off
             //msg.setOptions(msg.getOptions() & (~getOptionFlag()));
             super.sendMessage(destination, msg, payload);
diff --git a/java/org/apache/catalina/tribes/membership/McastServiceImpl.java 
b/java/org/apache/catalina/tribes/membership/McastServiceImpl.java
index 8ac2c205a5..7b6a8185f3 100644
--- a/java/org/apache/catalina/tribes/membership/McastServiceImpl.java
+++ b/java/org/apache/catalina/tribes/membership/McastServiceImpl.java
@@ -87,11 +87,11 @@ public class McastServiceImpl {
      */
     protected final long sendFrequency;
     /**
-     * Reuse the sendPacket, no need to create a new one everytime
+     * Reuse the sendPacket, no need to create a new one every time
      */
     protected DatagramPacket sendPacket;
     /**
-     * Reuse the receivePacket, no need to create a new one everytime
+     * Reuse the receivePacket, no need to create a new one every time
      */
     protected DatagramPacket receivePacket;
     /**
diff --git a/java/org/apache/catalina/webresources/AbstractFileResourceSet.java 
b/java/org/apache/catalina/webresources/AbstractFileResourceSet.java
index 3930a90c5b..153fae819b 100644
--- a/java/org/apache/catalina/webresources/AbstractFileResourceSet.java
+++ b/java/org/apache/catalina/webresources/AbstractFileResourceSet.java
@@ -123,7 +123,7 @@ public abstract class AbstractFileResourceSet extends 
AbstractResourceSet {
         // - case differences on case insensitive file systems
         // - Windows removing a trailing ' ' or '.' from the file name
         //
-        // In all cases, a mis-match here results in the resource not being
+        // In all cases, a mismatch here results in the resource not being
         // found
         //
         // absPath is normalized so canPath needs to be normalized as well
diff --git a/java/org/apache/coyote/ActionHook.java 
b/java/org/apache/coyote/ActionHook.java
index 4b4e369b4c..8783048e66 100644
--- a/java/org/apache/coyote/ActionHook.java
+++ b/java/org/apache/coyote/ActionHook.java
@@ -23,7 +23,7 @@ package org.apache.coyote;
  * Some standard actions are defined in ActionCode, however custom
  * actions are permitted.
  *
- * The param object can be used to pass and return informations related with 
the
+ * The param object can be used to pass and return information related with the
  * action.
  *
  *
diff --git a/java/org/apache/coyote/RequestInfo.java 
b/java/org/apache/coyote/RequestInfo.java
index 16aafa1f6f..0e2c74a342 100644
--- a/java/org/apache/coyote/RequestInfo.java
+++ b/java/org/apache/coyote/RequestInfo.java
@@ -21,7 +21,7 @@ import javax.management.ObjectName;
 
 /**
  * Structure holding the Request and Response objects. It also holds 
statistical
- * informations about request processing and provide management informations
+ * information about request processing and provide management information
  * about the requests being processed.
  *
  * Each thread uses a Request/Response pair that is recycled on each request.
diff --git a/java/org/apache/coyote/Response.java 
b/java/org/apache/coyote/Response.java
index f3bcd8b714..321393bf7b 100644
--- a/java/org/apache/coyote/Response.java
+++ b/java/org/apache/coyote/Response.java
@@ -117,7 +117,7 @@ public final class Response {
     long contentLength = -1;
     private Locale locale = DEFAULT_LOCALE;
 
-    // General informations
+    // General information
     private long contentWritten = 0;
     private long commitTime = -1;
 
diff --git a/java/org/apache/coyote/http11/Http11Processor.java 
b/java/org/apache/coyote/http11/Http11Processor.java
index e13ab36690..8977fc7dd8 100644
--- a/java/org/apache/coyote/http11/Http11Processor.java
+++ b/java/org/apache/coyote/http11/Http11Processor.java
@@ -461,7 +461,7 @@ public class Http11Processor extends AbstractProcessor {
             setErrorState(ErrorState.CLOSE_CLEAN, null);
             if (log.isDebugEnabled()) {
                 log.debug(sm.getString("http11processor.request.prepare") +
-                          " Tranfer encoding lists chunked before [" + 
encodingName + "]");
+                          " Transfer encoding lists chunked before [" + 
encodingName + "]");
             }
             return;
         }
diff --git a/java/org/apache/coyote/http2/AbstractNonZeroStream.java 
b/java/org/apache/coyote/http2/AbstractNonZeroStream.java
index f67b17f7d9..0876fc88c6 100644
--- a/java/org/apache/coyote/http2/AbstractNonZeroStream.java
+++ b/java/org/apache/coyote/http2/AbstractNonZeroStream.java
@@ -61,7 +61,7 @@ abstract class AbstractNonZeroStream extends AbstractStream {
      * General method used when reprioritising a stream and care needs to be
      * taken not to create circular references.
      *
-     * Changes to the priority tree need to be sychronized at the connection
+     * Changes to the priority tree need to be synchronized at the connection
      * level. This is the caller's responsibility.
      */
     final void rePrioritise(AbstractStream parent, boolean exclusive, int 
weight) {
@@ -99,7 +99,7 @@ abstract class AbstractNonZeroStream extends AbstractStream {
      * Used when removing closed streams from the tree and we know there is no
      * need to check for circular references.
      *
-     * Changes to the priority tree need to be sychronized at the connection
+     * Changes to the priority tree need to be synchronized at the connection
      * level. This is the caller's responsibility.
      */
     final void rePrioritise(AbstractStream parent, int weight) {
@@ -121,7 +121,7 @@ abstract class AbstractNonZeroStream extends AbstractStream 
{
      * Replace this stream with the provided stream in the parent/child
      * hierarchy.
      *
-     * Changes to the priority tree need to be sychronized at the connection
+     * Changes to the priority tree need to be synchronized at the connection
      * level. This is the caller's responsibility.
      */
     void replaceStream(AbstractNonZeroStream replacement) {
diff --git a/java/org/apache/jasper/compiler/Parser.java 
b/java/org/apache/jasper/compiler/Parser.java
index a630aa4a7b..10b2442641 100644
--- a/java/org/apache/jasper/compiler/Parser.java
+++ b/java/org/apache/jasper/compiler/Parser.java
@@ -485,7 +485,7 @@ class Parser implements TagConstants {
             parseIncludeDirective(parent);
         } else if (reader.matches("taglib")) {
             if (directivesOnly) {
-                // No need to get the tagLibInfo objects. This alos suppresses
+                // No need to get the tagLibInfo objects. This also suppresses
                 // parsing of any tag files used in this tag file.
                 return;
             }
diff --git a/java/org/apache/jasper/compiler/ServletWriter.java 
b/java/org/apache/jasper/compiler/ServletWriter.java
index f5d305757e..14d8cbf389 100644
--- a/java/org/apache/jasper/compiler/ServletWriter.java
+++ b/java/org/apache/jasper/compiler/ServletWriter.java
@@ -56,7 +56,7 @@ public class ServletWriter implements AutoCloseable {
     }
 
 
-    // -------------------- Access informations --------------------
+    // -------------------- Access information --------------------
 
     public int getJavaLine() {
         return javaLine;
@@ -97,14 +97,14 @@ public class ServletWriter implements AutoCloseable {
     }
 
     /**
-     * Prints the current indention
+     * Prints the current indentation
      */
     public void printin() {
         writer.print(SPACES.substring(0, indent));
     }
 
     /**
-     * Prints the current indention, followed by the given string
+     * Prints the current indentation, followed by the given string
      * @param s The string
      */
     public void printin(String s) {
@@ -113,7 +113,7 @@ public class ServletWriter implements AutoCloseable {
     }
 
     /**
-     * Prints the current indention, and then the string, and a '\n'.
+     * Prints the current indentation, and then the string, and a '\n'.
      * @param s The string
      */
     public void printil(String s) {
diff --git a/java/org/apache/jasper/tagplugins/jstl/core/ForEach.java 
b/java/org/apache/jasper/tagplugins/jstl/core/ForEach.java
index 03c0f79fdb..c62283abfe 100644
--- a/java/org/apache/jasper/tagplugins/jstl/core/ForEach.java
+++ b/java/org/apache/jasper/tagplugins/jstl/core/ForEach.java
@@ -59,7 +59,7 @@ public final class ForEach implements TagPlugin {
             ctxt.generateJavaSource("; " + index + "++) {");
         }
 
-        // If var is specified and the body contains an EL, then sycn
+        // If var is specified and the body contains an EL, then sync
         // the var attribute
         if (hasVar /* && ctxt.hasEL() */) {
             ctxt.generateJavaSource("_jspx_page_context.setAttribute(");
diff --git a/java/org/apache/naming/factory/webservices/ServiceRefFactory.java 
b/java/org/apache/naming/factory/webservices/ServiceRefFactory.java
index 904893a94f..909f3d3c72 100644
--- a/java/org/apache/naming/factory/webservices/ServiceRefFactory.java
+++ b/java/org/apache/naming/factory/webservices/ServiceRefFactory.java
@@ -252,7 +252,7 @@ public class ServiceRefFactory implements ObjectFactory {
                         break;
                     }
 
-                    // Load all datas relative to the handler : SOAPHeaders, 
config init element,
+                    // Load all data relative to the handler : SOAPHeaders, 
config init element,
                     // portNames to be set on
                     List<QName> headers = new ArrayList<>();
                     Hashtable<String,String> config = new Hashtable<>();
@@ -288,7 +288,7 @@ public class ServiceRefFactory implements ObjectFactory {
                         }
                     }
 
-                    // Set the handlers informations
+                    // Set the handlers information
                     handlerInfo.setHandlerClass(handlerClass);
                     handlerInfo.setHeaders(headers.toArray(new QName[0]));
                     handlerInfo.setHandlerConfig(config);
diff --git a/java/org/apache/tomcat/dbcp/dbcp2/DelegatingConnection.java 
b/java/org/apache/tomcat/dbcp/dbcp2/DelegatingConnection.java
index 2d82680926..8c94087a3f 100644
--- a/java/org/apache/tomcat/dbcp/dbcp2/DelegatingConnection.java
+++ b/java/org/apache/tomcat/dbcp/dbcp2/DelegatingConnection.java
@@ -223,7 +223,7 @@ public class DelegatingConnection<C extends Connection> 
extends AbandonedTrace i
                     connectionIsClosed = false;
                 }
                 try {
-                    // DBCP-512: Avoid exceptions when closing a connection in 
mutli-threaded use case.
+                    // DBCP-512: Avoid exceptions when closing a connection in 
multi-threaded use case.
                     // Avoid closing again, which should be a no-op, but some 
drivers like H2 throw an exception when
                     // closing from multiple threads.
                     if (!connectionIsClosed) {
diff --git a/java/org/apache/tomcat/util/net/jsse/JSSEKeyManager.java 
b/java/org/apache/tomcat/util/net/jsse/JSSEKeyManager.java
index 05a6010ed0..30777d6f78 100644
--- a/java/org/apache/tomcat/util/net/jsse/JSSEKeyManager.java
+++ b/java/org/apache/tomcat/util/net/jsse/JSSEKeyManager.java
@@ -26,7 +26,7 @@ import javax.net.ssl.X509ExtendedKeyManager;
 import javax.net.ssl.X509KeyManager;
 
 /**
- * X509KeyManager which allows selection of a specific keypair and certificate
+ * X509KeyManager which allows selection of a specific key pair and certificate
  * chain (identified by their keystore alias name) to be used by the server to
  * authenticate itself to SSL clients.
  *
@@ -42,7 +42,7 @@ public final class JSSEKeyManager extends 
X509ExtendedKeyManager {
      * Constructor.
      *
      * @param mgr The X509KeyManager used as a delegate
-     * @param serverKeyAlias The alias name of the server's keypair and
+     * @param serverKeyAlias The alias name of the server's key pair and
      * supporting certificate chain
      */
     public JSSEKeyManager(X509KeyManager mgr, String serverKeyAlias) {
diff --git a/java/org/apache/tomcat/util/net/jsse/PEMFile.java 
b/java/org/apache/tomcat/util/net/jsse/PEMFile.java
index 0866fcf1ea..f7751c18b0 100644
--- a/java/org/apache/tomcat/util/net/jsse/PEMFile.java
+++ b/java/org/apache/tomcat/util/net/jsse/PEMFile.java
@@ -294,7 +294,7 @@ public class PEMFile {
                  * fragile but acceptable in this case since the JRE depends on
                  * the toString() implementation as well.
                  * In the future, if necessary, we can parse the value of
-                 * paremeters.getEncoded() but the associated complexity and
+                 * parameters.getEncoded() but the associated complexity and
                  * unlikeliness of the JRE implementation changing means that
                  * Tomcat will use to toString() approach for now.
                  */
diff --git a/java/org/apache/tomcat/util/threads/TaskQueue.java 
b/java/org/apache/tomcat/util/threads/TaskQueue.java
index 6b250ee9d3..b799e3664c 100644
--- a/java/org/apache/tomcat/util/threads/TaskQueue.java
+++ b/java/org/apache/tomcat/util/threads/TaskQueue.java
@@ -27,7 +27,7 @@ import org.apache.tomcat.util.res.StringManager;
  * As task queue specifically designed to run with a thread pool executor. The
  * task queue is optimised to properly utilize threads within a thread pool
  * executor. If you use a normal queue, the executor will spawn threads when
- * there are idle threads and you wont be able to force items onto the queue
+ * there are idle threads and you won't be able to force items onto the queue
  * itself.
  */
 public class TaskQueue extends LinkedBlockingQueue<Runnable> {
diff --git 
a/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java
 
b/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java
index c4c90f8554..eb5e845527 100644
--- 
a/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java
+++ 
b/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java
@@ -1335,7 +1335,7 @@ public class ConnectionPool {
     }
 
     /**
-     * Tread safe wrapper around a future for the regular queue
+     * Thread safe wrapper around a future for the regular queue
      * This one retrieves the pooled connection object
      * and performs the initialization according to
      * interceptors and validation rules.
diff --git 
a/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/interceptor/AbstractQueryReport.java
 
b/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/interceptor/AbstractQueryReport.java
index 9ba2f991d5..04a263ace2 100644
--- 
a/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/interceptor/AbstractQueryReport.java
+++ 
b/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/interceptor/AbstractQueryReport.java
@@ -118,7 +118,7 @@ public abstract class AbstractQueryReport extends 
AbstractCreateStatementInterce
 
     /**
      * returns the query measure threshold.
-     * This value is in milliseconds. If the query is faster than this 
threshold than it wont be accounted for
+     * This value is in milliseconds. If the query is faster than this 
threshold than it won't be accounted for
      * @return the threshold in milliseconds
      */
     public long getThreshold() {
diff --git 
a/modules/jdbc-pool/src/test/java/org/apache/tomcat/jdbc/test/TestValidation.java
 
b/modules/jdbc-pool/src/test/java/org/apache/tomcat/jdbc/test/TestValidation.java
index 85b53b3f11..80a9ba883d 100644
--- 
a/modules/jdbc-pool/src/test/java/org/apache/tomcat/jdbc/test/TestValidation.java
+++ 
b/modules/jdbc-pool/src/test/java/org/apache/tomcat/jdbc/test/TestValidation.java
@@ -54,7 +54,7 @@ public class TestValidation extends DefaultTestCase {
         datasource.setMinIdle(1);
         datasource.setMaxIdle(1);
         datasource.setMaxActive(2);
-        // Validation interval is disabled by default to ensure validation 
occurs everytime
+        // Validation interval is disabled by default to ensure validation 
occurs every time
         datasource.setValidationInterval(-1);
         // No validation query by default
         datasource.setValidationQuery(null);
diff --git 
a/test/org/apache/catalina/loader/TestWebappClassLoaderExecutorMemoryLeak.java 
b/test/org/apache/catalina/loader/TestWebappClassLoaderExecutorMemoryLeak.java
index 2fc7b0ad93..0aea0ab4d5 100644
--- 
a/test/org/apache/catalina/loader/TestWebappClassLoaderExecutorMemoryLeak.java
+++ 
b/test/org/apache/catalina/loader/TestWebappClassLoaderExecutorMemoryLeak.java
@@ -64,7 +64,7 @@ public class TestWebappClassLoaderExecutorMemoryLeak extends 
TomcatBaseTest {
 
         // The time taken to shutdown the executor can vary between systems. 
Try
         // to avoid false test failures due to timing issues. Give the executor
-        // upto 10 seconds to close down.
+        // up to 10 seconds to close down.
         int count = 0;
         while (count < 100 && !executorServlet.tpe.isTerminated()) {
             count++;
diff --git a/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java 
b/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java
index 2730e44aa3..23491ae6f2 100644
--- a/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java
+++ b/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java
@@ -306,9 +306,9 @@ public class TestNonBlockingAPI extends TomcatBaseTest {
                         if (resultEnd > resultString.length()) {
                             resultEnd = resultString.length();
                         }
-                        log.error("Mis-match tx: " + new String(
+                        log.error("Mismatch tx: " + new String(
                                 DATA, dataStart, dataEnd - dataStart));
-                        log.error("Mis-match rx: " +
+                        log.error("Mismatch rx: " +
                                 resultString.substring(resultStart, 
resultEnd));
                         found = true;
                         break;
@@ -794,9 +794,9 @@ public class TestNonBlockingAPI extends TomcatBaseTest {
         int written = 0;
         public volatile boolean onErrorInvoked = false;
 
-        public TestWriteListener(AsyncContext ctx, boolean unlimted) {
+        public TestWriteListener(AsyncContext ctx, boolean unlimited) {
             this.ctx = ctx;
-            this.unlimited = unlimted;
+            this.unlimited = unlimited;
         }
 
         @Override
diff --git a/test/org/apache/catalina/tribes/demos/MapDemo.java 
b/test/org/apache/catalina/tribes/demos/MapDemo.java
index f6c657b8d3..17ba0e829b 100644
--- a/test/org/apache/catalina/tribes/demos/MapDemo.java
+++ b/test/org/apache/catalina/tribes/demos/MapDemo.java
@@ -168,7 +168,7 @@ public class MapDemo implements ChannelListener, 
MembershipListener{
         @Override
         public void run() {
             System.out.println("Shutting down...");
-            //create an exit thread that forces a shutdown if the JVM wont 
exit cleanly
+            //create an exit thread that forces a shutdown if the JVM won't 
exit cleanly
             SystemExit exit = new SystemExit(5000);
             exit.setDaemon(true);
             exit.start();
diff --git a/test/org/apache/coyote/http11/TestHttp11Processor.java 
b/test/org/apache/coyote/http11/TestHttp11Processor.java
index 2628dba2b1..877243d29c 100644
--- a/test/org/apache/coyote/http11/TestHttp11Processor.java
+++ b/test/org/apache/coyote/http11/TestHttp11Processor.java
@@ -1821,7 +1821,7 @@ public class TestHttp11Processor extends TomcatBaseTest {
             // Needs to be async to trigger the problematic code path
             AsyncContext ac = req.startAsync();
             ServletInputStream sis = req.getInputStream();
-            // This triggers a call to Http11InputBuffer.avalable(true) which
+            // This triggers a call to Http11InputBuffer.available(true) which
             // did not handle the pipelining case.
             sis.setReadListener(new Bug64974ReadListener());
             ac.complete();
diff --git a/test/org/apache/coyote/http2/Http2TestBase.java 
b/test/org/apache/coyote/http2/Http2TestBase.java
index 1433b39b4a..ce8c77c0f2 100644
--- a/test/org/apache/coyote/http2/Http2TestBase.java
+++ b/test/org/apache/coyote/http2/Http2TestBase.java
@@ -1393,7 +1393,7 @@ public abstract class Http2TestBase extends 
TomcatBaseTest {
         @Override
         protected void doGet(HttpServletRequest req, HttpServletResponse resp)
                 throws ServletException, IOException {
-            // Request bodies are unusal with GET but not illegal
+            // Request bodies are unusual with GET but not illegal
             doPost(req, resp);
         }
 
diff --git a/test/org/apache/coyote/http2/TestCancelledUpload.java 
b/test/org/apache/coyote/http2/TestCancelledUpload.java
index a3ad01030f..3e813ab4d5 100644
--- a/test/org/apache/coyote/http2/TestCancelledUpload.java
+++ b/test/org/apache/coyote/http2/TestCancelledUpload.java
@@ -167,7 +167,7 @@ public class TestCancelledUpload extends Http2TestBase {
 
         @Override
         protected void doPost(HttpServletRequest req, HttpServletResponse 
resp) throws ServletException, IOException {
-            // Read upto 128 bytes and then return a 403 response
+            // Read up to 128 bytes and then return a 403 response
 
             InputStream is = req.getInputStream();
             byte[] buf = new byte[128];
diff --git a/test/org/apache/tomcat/websocket/TestWsSubprotocols.java 
b/test/org/apache/tomcat/websocket/TestWsSubprotocols.java
index d6b848e4eb..a4c2e7b575 100644
--- a/test/org/apache/tomcat/websocket/TestWsSubprotocols.java
+++ b/test/org/apache/tomcat/websocket/TestWsSubprotocols.java
@@ -79,7 +79,7 @@ public class TestWsSubprotocols extends WebSocketBaseTest {
 
         Assert.assertTrue(wsSession.isOpen());
         Assert.assertEquals("sp2", wsSession.getNegotiatedSubprotocol());
-        // Client thread might move faster than server. Wait for upto 5s for 
the
+        // Client thread might move faster than server. Wait for up to 5s for 
the
         // subProtocols to be set
         int count = 0;
         while (count < 50 && SubProtocolsEndpoint.subprotocols == null) {


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to