From: markt
* descriptors[n + 0] -> returned events
* descriptors[n + 1] -> socket
*
* @param remove Remove signaled descriptors from pollset
- * @return Number of signalled descriptors (output parameter)
+ * @return Number of signaled descriptors (output parameter)
* or negative APR error code.
*/
public static native int poll(long pollset, long timeout,
@@ -112,14 +112,14 @@ public class Poll {
/**
* Maintain on the descriptor(s) in a pollset
* @param pollset The pollset to use
- * @param descriptors Array of signalled descriptors (output parameter)
- * The desctiptor array must be the size of pollset.
+ * @param descriptors Array of signaled descriptors (output parameter)
+ * The descriptor array must be the size of pollset.
* and are populated as follows:
*
* descriptors[n] -> socket
*
* @param remove Remove signaled descriptors from pollset
- * @return Number of signalled descriptors (output parameter)
+ * @return Number of signaled descriptors (output parameter)
* or negative APR error code.
*/
public static native int maintain(long pollset, long [] descriptors,
@@ -143,7 +143,7 @@ public class Poll {
* Return all descriptor(s) in a pollset
* @param pollset The pollset to use
* @param descriptors Array of descriptors (output parameter)
- * The desctiptor array must be two times the size of pollset.
+ * The descriptor array must be two times the size of pollset.
* and are populated as follows:
*
* descriptors[n + 0] -> returned events
diff --git a/java/org/apache/tomcat/jni/Pool.java b/java/org/apache/tomcat/jni/Pool.java
index 408c9cb45..10beedac1 100644
--- a/java/org/apache/tomcat/jni/Pool.java
+++ b/java/org/apache/tomcat/jni/Pool.java
@@ -142,8 +142,8 @@ public class Pool {
*
* @param idx temporary key index.
- * @param file File contatining DH params.
+ * @param file File containing DH params.
*/
public static native boolean loadDSATempKey(int idx, String file);
diff --git a/java/org/apache/tomcat/jni/SSLContext.java b/java/org/apache/tomcat/jni/SSLContext.java
index 13e84d407..7eee14a9b 100644
--- a/java/org/apache/tomcat/jni/SSLContext.java
+++ b/java/org/apache/tomcat/jni/SSLContext.java
@@ -62,13 +62,13 @@ public final class SSLContext {
public static native void setContextId(long ctx, String id);
/**
- * Asssociate BIOCallback for input or output data capture.
+ * Associate BIOCallback for input or output data capture.
*
Warning :
* The data to be attached to the pool should have a life span
* at least as long as the pool it is being attached to.
- * Object attached to the pool will be globaly referenced
- * untill the pool is cleared or dataSet is called with the null data.
+ * Object attached to the pool will be globally referenced
+ * until the pool is cleared or dataSet is called with the null data.
* @return APR Status code.
*/
public static native int dataSet(long pool, String key, Object data);
diff --git a/java/org/apache/tomcat/jni/Proc.java b/java/org/apache/tomcat/jni/Proc.java
index 7f037c71b..ba0238033 100644
--- a/java/org/apache/tomcat/jni/Proc.java
+++ b/java/org/apache/tomcat/jni/Proc.java
@@ -65,7 +65,7 @@ public class Proc {
public static final int APR_OC_REASON_DEATH = 0;
/** write_fd is unwritable */
public static final int APR_OC_REASON_UNWRITABLE = 1;
- /** a restart is occuring, perform any necessary cleanup (including
+ /** a restart is occurring, perform any necessary cleanup (including
* sending a special signal to child)
*/
public static final int APR_OC_REASON_RESTART = 2;
@@ -75,7 +75,7 @@ public class Proc {
public static final int APR_OC_REASON_UNREGISTER = 3;
/** somehow the child exited without us knowing ... buggy os? */
public static final int APR_OC_REASON_LOST = 4;
- /** a health check is occuring, for most maintainence functions
+ /** a health check is occurring, for most maintenance functions
* this is a no-op.
*/
public static final int APR_OC_REASON_RUNNING = 5;
@@ -101,7 +101,7 @@ public class Proc {
public static final int MAX_ENV_SIZE = 1024;
/**
- * Allocate apr_proc_t stucture from pool
+ * Allocate apr_proc_t structure from pool
* This is not an apr function.
* @param cont The pool to use.
*/
diff --git a/java/org/apache/tomcat/jni/SSL.java b/java/org/apache/tomcat/jni/SSL.java
index 8cdfc1c91..efbbf829c 100644
--- a/java/org/apache/tomcat/jni/SSL.java
+++ b/java/org/apache/tomcat/jni/SSL.java
@@ -221,7 +221,7 @@ public final class SSL {
* lifetime of JVM. Library.init() has to be called before.
* @param engine Support for external a Crypto Device ("engine"),
* usually
- * a hardware accellerator card for crypto operations.
+ * a hardware accelerator card for crypto operations.
* @return APR status code
*/
public static native int initialize(String engine);
@@ -272,7 +272,7 @@ public final class SSL {
throws Exception;
/**
- * Close BIO and derefrence callback object
+ * Close BIO and dereference callback object
* @param bio BIO to close and destroy.
* @return APR Status code
*/
@@ -317,7 +317,7 @@ public final class SSL {
* SSL_TMP_KEY_DH_4096
*
* First word in the output string will contain error
* level in the form:
*
* [ERROR] -- Critical error messages
- * [WARN] -- Varning messages
+ * [WARN] -- Warning messages
* [INFO] -- Informational messages
* [DEBUG] -- Debugging messaged
*
@@ -119,7 +119,7 @@ public final class SSLContext {
* directive can be used both in per-server and per-directory context.
* In per-server context it applies to the standard SSL handshake when a
* connection is established. In per-directory context it forces a SSL
- * renegotation with the reconfigured Cipher Suite after the HTTP request
+ * renegotiation with the reconfigured Cipher Suite after the HTTP request
* was read but before the HTTP response is sent.
* @param ctx Server or Client context to use.
* @param ciphers An SSL cipher specification.
@@ -192,7 +192,7 @@ public final class SSLContext {
* @param cert Certificate file.
* @param key Private Key file to use if not in cert.
* @param password Certificate password. If null and certificate
- * is encrypted, password prompt will be dispayed.
+ * is encrypted, password prompt will be displayed.
* @param idx Certificate index SSL_AIDX_RSA or SSL_AIDX_DSA.
*/
public static native boolean setCertificate(long ctx, String cert,
@@ -254,7 +254,7 @@ public final class SSLContext {
* Authentication. Notice that this directive can be used both in per-server
* and per-directory context. In per-server context it applies to the client
* authentication process used in the standard SSL handshake when a connection
- * is established. In per-directory context it forces a SSL renegotation with
+ * is established. In per-directory context it forces a SSL renegotiation with
* the reconfigured client verification level after the HTTP request was read
* but before the HTTP response is sent.
*
diff --git a/java/org/apache/tomcat/jni/Shm.java b/java/org/apache/tomcat/jni/Shm.java
index 838440582..233d75521 100644
--- a/java/org/apache/tomcat/jni/Shm.java
+++ b/java/org/apache/tomcat/jni/Shm.java
@@ -28,11 +28,11 @@ import java.nio.ByteBuffer;
public class Shm {
/**
- * Create and make accessable a shared memory segment.
+ * Create and make accessible a shared memory segment.
*
* A note about Anonymous vs. Named shared memory segments:
- * Not all plaforms support anonymous shared memory segments, but in
- * some cases it is prefered over other types of shared memory
+ * Not all platforms support anonymous shared memory segments, but in
+ * some cases it is preferred over other types of shared memory
* implementations. Passing a NULL 'file' parameter to this function
* will cause the subsystem to use anonymous shared memory segments.
* If such a system is not available, APR_ENOTIMPL is returned.
diff --git a/java/org/apache/tomcat/jni/Socket.java b/java/org/apache/tomcat/jni/Socket.java
index 27b4c6182..b946d9228 100644
--- a/java/org/apache/tomcat/jni/Socket.java
+++ b/java/org/apache/tomcat/jni/Socket.java
@@ -483,7 +483,7 @@ public class Socket {
* @param t Value for the timeout in microseconds.
*
* t > 0 -- read and write calls return APR_TIMEUP if specified time
- * elapsess with no data read or written
+ * elapses with no data read or written
* t == 0 -- read and write calls never block
* t < 0 -- read and write calls block
*
@@ -537,8 +537,8 @@ public class Socket {
throws Exception;
/**
- * Private method for geting the socket struct members
- * @param socket The soocket to use
+ * Private method for getting the socket struct members
+ * @param socket The socket to use
* @param what Struct member to obtain
*
* SOCKET_GET_POOL - The socket pool
@@ -546,7 +546,7 @@ public class Socket {
* SOCKET_GET_APRS - APR socket
* SOCKET_GET_TYPE - Socket type
*
- * @return The stucture member address
+ * @return The structure member address
*/
private static native long get(long socket, int what);
diff --git a/java/org/apache/tomcat/jni/Time.java b/java/org/apache/tomcat/jni/Time.java
index dc41535a6..e8623a2fd 100644
--- a/java/org/apache/tomcat/jni/Time.java
+++ b/java/org/apache/tomcat/jni/Time.java
@@ -27,7 +27,7 @@ public class Time {
/** number of microseconds per second */
public static final long APR_USEC_PER_SEC = 1000000L;
- /** number of miliseconds per microsecond */
+ /** number of milliseconds per microsecond */
public static final long APR_MSEC_PER_USEC = 1000L;
/** @return apr_time_t as a second */
@@ -43,7 +43,7 @@ public class Time {
}
/**
- * number of microseconds since 00:00:00 january 1, 1970 UTC
+ * number of microseconds since 00:00:00 January 1, 1970 UTC
* @return the current time
*/
public static native long now();
diff --git a/java/org/apache/tomcat/jni/User.java b/java/org/apache/tomcat/jni/User.java
index 69723f9dc..cb074876c 100644
--- a/java/org/apache/tomcat/jni/User.java
+++ b/java/org/apache/tomcat/jni/User.java
@@ -99,7 +99,7 @@ public class User {
* This function is available only if APR_HAS_USER is defined.
* @param left One uid to test
* @param right Another uid to test
- * @return APR_SUCCESS if the apr_uid_t strutures identify the same user,
+ * @return APR_SUCCESS if the apr_uid_t structures identify the same user,
* APR_EMISMATCH if not, APR_BADARG if an apr_uid_t is invalid.
*/
public static native int uidcompare(long left, long right);
@@ -109,7 +109,7 @@ public class User {
* This function is available only if APR_HAS_USER is defined.
* @param left One gid to test
* @param right Another gid to test
- * @return APR_SUCCESS if the apr_gid_t strutures identify the same group,
+ * @return APR_SUCCESS if the apr_gid_t structures identify the same group,
* APR_EMISMATCH if not, APR_BADARG if an apr_gid_t is invalid.
*/
public static native int gidcompare(long left, long right);
diff --git a/java/org/apache/tomcat/util/DomUtil.java b/java/org/apache/tomcat/util/DomUtil.java
index 876cddef4..900b3344b 100644
--- a/java/org/apache/tomcat/util/DomUtil.java
+++ b/java/org/apache/tomcat/util/DomUtil.java
@@ -50,7 +50,7 @@ public class DomUtil {
// -------------------- DOM utils --------------------
- /** Get the trimed text content of a node or null if there is no text
+ /** Get the trimmed text content of a node or null if there is no text
*/
public static String getContent(Node n ) {
if( n==null ) return null;
@@ -63,7 +63,7 @@ public class DomUtil {
}
/** Get the first element child.
- * @param parent lookup direct childs
+ * @param parent lookup direct children
* @param name name of the element. If null return the first element.
*/
public static Node getChild( Node parent, String name ) {
diff --git a/java/org/apache/tomcat/util/IntrospectionUtils.java b/java/org/apache/tomcat/util/IntrospectionUtils.java
index 56c46a393..225969e1c 100644
--- a/java/org/apache/tomcat/util/IntrospectionUtils.java
+++ b/java/org/apache/tomcat/util/IntrospectionUtils.java
@@ -748,7 +748,7 @@ public final class IntrospectionUtils {
Method myMethods[] = findMethods(obj.getClass());
for (int i = 0; i < myMethods.length; i++) {
if (methodN.equals(myMethods[i].getName())) {
- // check if it's overriden
+ // check if it's overridden
Class> declaring = myMethods[i].getDeclaringClass();
Class> parentOfDeclaring = declaring.getSuperclass();
// this works only if the base class doesn't extend
diff --git a/java/org/apache/tomcat/util/buf/B2CConverter.java b/java/org/apache/tomcat/util/buf/B2CConverter.java
index 639fc971f..18c77affa 100644
--- a/java/org/apache/tomcat/util/buf/B2CConverter.java
+++ b/java/org/apache/tomcat/util/buf/B2CConverter.java
@@ -25,7 +25,7 @@ import java.io.UnsupportedEncodingException;
/** Efficient conversion of bytes to character .
*
- * This uses the standard JDK mechansim - a reader - but provides mechanisms
+ * This uses the standard JDK mechanism - a reader - but provides mechanisms
* to recycle all the objects that are used. It is compatible with JDK1.1
* and up,
* ( nio is better, but it's not available even in 1.2 or 1.3 )
@@ -126,7 +126,7 @@ final class ReadConvertor extends InputStreamReader {
super( in, enc );
}
- /** Overriden - will do nothing but reset internal state.
+ /** Overridden - will do nothing but reset internal state.
*/
@Override
public final void close() throws IOException {
@@ -157,7 +157,7 @@ final class ReadConvertor extends InputStreamReader {
}
-/** Special output stream where close() is overriden, so super.close()
+/** Special output stream where close() is overridden, so super.close()
is never called.
This allows recycling. It can also be disabled, so callbacks will
diff --git a/java/org/apache/tomcat/util/buf/ByteChunk.java b/java/org/apache/tomcat/util/buf/ByteChunk.java
index 94423bf40..768059b3b 100644
--- a/java/org/apache/tomcat/util/buf/ByteChunk.java
+++ b/java/org/apache/tomcat/util/buf/ByteChunk.java
@@ -63,7 +63,7 @@ import java.io.Serializable;
*/
public final class ByteChunk implements Cloneable, Serializable {
- /** Input interface, used when the buffer is emptiy
+ /** Input interface, used when the buffer is empty
*
* Same as java.nio.channel.ReadableByteChannel
*/
@@ -232,7 +232,7 @@ public final class ByteChunk implements Cloneable, Serializable {
/** Maximum amount of data in this buffer.
*
- * If -1 or not set, the buffer will grow undefinitely.
+ * If -1 or not set, the buffer will grow indefinitely.
* Can be smaller than the current buffer size ( which will not shrink ).
* When the limit is reached, the buffer will be flushed ( if out is set )
* or throw exception.
@@ -417,7 +417,7 @@ public final class ByteChunk implements Cloneable, Serializable {
/** Send the buffer to the sink. Called by append() when the limit is reached.
- * You can also call it explicitely to force the data to be written.
+ * You can also call it explicitly to force the data to be written.
*
* @throws IOException
*/
@@ -498,7 +498,7 @@ public final class ByteChunk implements Cloneable, Serializable {
strValue = new String( buff, start, end-start, enc );
/*
Does not improve the speed too much on most systems,
- it's safer to use the "clasical" new String().
+ it's safer to use the "classical" new String().
Most overhead is in creating char[] and copying,
the internal implementation of new String() is very close to
diff --git a/java/org/apache/tomcat/util/buf/C2BConverter.java b/java/org/apache/tomcat/util/buf/C2BConverter.java
index 95a0ab939..eec29e722 100644
--- a/java/org/apache/tomcat/util/buf/C2BConverter.java
+++ b/java/org/apache/tomcat/util/buf/C2BConverter.java
@@ -24,7 +24,7 @@ import java.io.UnsupportedEncodingException;
/** Efficient conversion of character to bytes.
*
- * This uses the standard JDK mechansim - a writer - but provides mechanisms
+ * This uses the standard JDK mechanism - a writer - but provides mechanisms
* to recycle all the objects that are used. It is compatible with JDK1.1 and up,
* ( nio is better, but it's not available even in 1.2 or 1.3 )
*
@@ -141,8 +141,8 @@ public final class C2BConverter {
/**
- * Special writer class, where close() is overritten. The default implementation
- * would set byteOutputter to null, and the writter can't be recycled.
+ * Special writer class, where close() is overridden. The default implementation
+ * would set byteOutputter to null, and the writer can't be recycled.
*
* Note that the flush method will empty the internal buffers _and_ call
* flush on the output stream - that's why we use an intermediary output stream
@@ -161,7 +161,7 @@ public final class C2BConverter {
*
*/
final class WriteConvertor extends OutputStreamWriter {
- // stream with flush() and close(). overriden.
+ // stream with flush() and close(). overridden.
private IntermediateOutputStream ios;
// Has a private, internal byte[8192]
@@ -175,7 +175,7 @@ public final class C2BConverter {
ios=out;
}
- /** Overriden - will do nothing but reset internal state.
+ /** Overridden - will do nothing but reset internal state.
*/
@Override
public final void close() throws IOException {
@@ -215,7 +215,7 @@ public final class C2BConverter {
}
-/** Special output stream where close() is overriden, so super.close()
+/** Special output stream where close() is overridden, so super.close()
is never called.
This allows recycling. It can also be disabled, so callbacks will
diff --git a/java/org/apache/tomcat/util/buf/CharChunk.java b/java/org/apache/tomcat/util/buf/CharChunk.java
index 95cb70d9f..3d71a9155 100644
--- a/java/org/apache/tomcat/util/buf/CharChunk.java
+++ b/java/org/apache/tomcat/util/buf/CharChunk.java
@@ -21,10 +21,10 @@ import java.io.IOException;
import java.io.Serializable;
/**
- * Utilities to manipluate char chunks. While String is
+ * Utilities to manipulate char chunks. While String is
* the easiest way to manipulate chars ( search, substrings, etc),
* it is known to not be the most efficient solution - Strings are
- * designed as imutable and secure objects.
+ * designed as immutable and secure objects.
*
* @author dac@sun.com
* @author James Todd [gonzo@sun.com]
@@ -64,7 +64,7 @@ public final class CharChunk implements Cloneable, Serializable, CharSequence {
private boolean isSet=false; // XXX
- // -1: grow undefinitely
+ // -1: grow indefinitely
// maximum amount to be cached
private int limit=-1;
@@ -138,7 +138,7 @@ public final class CharChunk implements Cloneable, Serializable, CharSequence {
/** Maximum amount of data in this buffer.
*
- * If -1 or not set, the buffer will grow undefinitely.
+ * If -1 or not set, the buffer will grow indefinitely.
* Can be smaller than the current buffer size ( which will not shrink ).
* When the limit is reached, the buffer will be flushed ( if out is set )
* or throw exception.
diff --git a/java/org/apache/tomcat/util/buf/MessageBytes.java b/java/org/apache/tomcat/util/buf/MessageBytes.java
index ac294b6cf..aef9abf7f 100644
--- a/java/org/apache/tomcat/util/buf/MessageBytes.java
+++ b/java/org/apache/tomcat/util/buf/MessageBytes.java
@@ -128,7 +128,7 @@ public final class MessageBytes implements Cloneable, Serializable {
*/
public void setEncoding( String enc ) {
if( !byteC.isNull() ) {
- // if the encoding changes we need to reset the converion results
+ // if the encoding changes we need to reset the conversion results
charC.recycle();
hasStrValue=false;
}
@@ -157,7 +157,7 @@ public final class MessageBytes implements Cloneable, Serializable {
*/
public void resetStringValue() {
if( type != T_STR ) {
- // If this was cread as a byte[] or char[], we remove
+ // If this was created as a byte[] or char[], we remove
// the old string value
hasStrValue=false;
strValue=null;
@@ -335,7 +335,7 @@ public final class MessageBytes implements Cloneable, Serializable {
// mb is either CHARS or BYTES.
// this is either CHARS or BYTES
- // Deal with the 4 cases ( in fact 3, one is simetric)
+ // Deal with the 4 cases ( in fact 3, one is symmetric)
if( mb.type == T_CHARS && type==T_CHARS ) {
return charC.equals( mb.charC );
diff --git a/java/org/apache/tomcat/util/buf/StringCache.java b/java/org/apache/tomcat/util/buf/StringCache.java
index fd794e1dc..57a64f501 100644
--- a/java/org/apache/tomcat/util/buf/StringCache.java
+++ b/java/org/apache/tomcat/util/buf/StringCache.java
@@ -220,7 +220,7 @@ public class StringCache {
// If training, everything is synced
synchronized (bcStats) {
// If the cache has been generated on a previous invocation
- // while waiting fot the lock, just return the toString value
+ // while waiting for the lock, just return the toString value
// we just calculated
if (bcCache != null) {
return value;
diff --git a/java/org/apache/tomcat/util/buf/UDecoder.java b/java/org/apache/tomcat/util/buf/UDecoder.java
index 937d055d9..ad0e98c2d 100644
--- a/java/org/apache/tomcat/util/buf/UDecoder.java
+++ b/java/org/apache/tomcat/util/buf/UDecoder.java
@@ -63,7 +63,7 @@ public final class UDecoder {
return;
}
- // idx will be the smallest positive inxes ( first % or + )
+ // idx will be the smallest positive indexes ( first % or + )
if( idx2 >= 0 && idx2 < idx ) idx=idx2;
if( idx < 0 ) idx=idx2;
diff --git a/java/org/apache/tomcat/util/buf/UEncoder.java b/java/org/apache/tomcat/util/buf/UEncoder.java
index 63e624404..bbb9f1794 100644
--- a/java/org/apache/tomcat/util/buf/UEncoder.java
+++ b/java/org/apache/tomcat/util/buf/UEncoder.java
@@ -123,7 +123,7 @@ public final class UEncoder {
}
/**
- * Utility funtion to re-encode the URL.
+ * Utility function to re-encode the URL.
* Still has problems with charset, since UEncoder mostly
* ignores it.
*/
diff --git a/java/org/apache/tomcat/util/collections/MultiMap.java b/java/org/apache/tomcat/util/collections/MultiMap.java
index 49be4214a..49f8aaa0b 100644
--- a/java/org/apache/tomcat/util/collections/MultiMap.java
+++ b/java/org/apache/tomcat/util/collections/MultiMap.java
@@ -149,7 +149,7 @@ public class MultiMap {
count--;
}
- /** Create a new, unitialized entry.
+ /** Create a new, uninitialized entry.
*/
public int addField() {
int len = fields.length;
diff --git a/java/org/apache/tomcat/util/collections/MultiMapNamesEnumeration.java b/java/org/apache/tomcat/util/collections/MultiMapNamesEnumeration.java
index 559b687f1..c25e9f4c9 100644
--- a/java/org/apache/tomcat/util/collections/MultiMapNamesEnumeration.java
+++ b/java/org/apache/tomcat/util/collections/MultiMapNamesEnumeration.java
@@ -20,10 +20,10 @@ package org.apache.tomcat.util.collections;
import java.util.Enumeration;
/** Enumerate the distinct header names.
- Each nextElement() is O(n) ( a comparation is
+ Each nextElement() is O(n) ( a comparison is
done with all previous elements ).
- This is less frequesnt than add() -
+ This is less frequent than add() -
we want to keep add O(1).
*/
public final class MultiMapNamesEnumeration implements EnumerationRules implementation */
private Digester digester;
- /** Namespace uri to assoicate with subsequent Rule's */
+ /** Namespace uri to associate with subsequent Rule's */
private String namespaceURI;
// ------------------------------------------------------------- Properties
diff --git a/java/org/apache/tomcat/util/digester/CallMethodRule.java b/java/org/apache/tomcat/util/digester/CallMethodRule.java
index 2e0469477..da5a9ebf1 100644
--- a/java/org/apache/tomcat/util/digester/CallMethodRule.java
+++ b/java/org/apache/tomcat/util/digester/CallMethodRule.java
@@ -151,9 +151,9 @@ public class CallMethodRule extends Rule {
*
* @param methodName Method name of the parent method to call
* @param paramCount The number of parameters to collect, or
- * zero for a single argument from the body of ths element
+ * zero for a single argument from the body of this element
* @param paramTypes The Java class names of the arguments
- * (if you wish to use a primitive type, specify the corresonding
+ * (if you wish to use a primitive type, specify the corresponding
* Java wrapper class instead, such as java.lang.Boolean
* for a boolean parameter)
*/
@@ -177,9 +177,9 @@ public class CallMethodRule extends Rule {
* object on the stack.
* @param methodName Method name of the parent method to call
* @param paramCount The number of parameters to collect, or
- * zero for a single argument from the body of ths element
+ * zero for a single argument from the body of this element
* @param paramTypes The Java class names of the arguments
- * (if you wish to use a primitive type, specify the corresonding
+ * (if you wish to use a primitive type, specify the corresponding
* Java wrapper class instead, such as java.lang.Boolean
* for a boolean parameter)
*/
@@ -217,10 +217,10 @@ public class CallMethodRule extends Rule {
*
* @param methodName Method name of the parent method to call
* @param paramCount The number of parameters to collect, or
- * zero for a single argument from the body of ths element
+ * zero for a single argument from the body of this element
* @param paramTypes The Java classes that represent the
* parameter types of the method arguments
- * (if you wish to use a primitive type, specify the corresonding
+ * (if you wish to use a primitive type, specify the corresponding
* Java wrapper class instead, such as java.lang.Boolean.TYPE
* for a boolean parameter)
*/
@@ -244,10 +244,10 @@ public class CallMethodRule extends Rule {
* object on the stack.
* @param methodName Method name of the parent method to call
* @param paramCount The number of parameters to collect, or
- * zero for a single argument from the body of ths element
+ * zero for a single argument from the body of this element
* @param paramTypes The Java classes that represent the
* parameter types of the method arguments
- * (if you wish to use a primitive type, specify the corresonding
+ * (if you wish to use a primitive type, specify the corresponding
* Java wrapper class instead, such as java.lang.Boolean.TYPE
* for a boolean parameter)
*/
diff --git a/java/org/apache/tomcat/util/digester/Digester.java b/java/org/apache/tomcat/util/digester/Digester.java
index 76e312b43..e96f06bc2 100644
--- a/java/org/apache/tomcat/util/digester/Digester.java
+++ b/java/org/apache/tomcat/util/digester/Digester.java
@@ -145,7 +145,7 @@ public class Digester extends DefaultHandler {
* allows Digester to be used in environments which are unfriendly to
* JAXP1.1 (such as WebLogic 6.0). Note that if you use this option you
* have to configure namespace and validation support yourself, as these
- * properties only affect the SAXParser and emtpy constructor.
+ * properties only affect the SAXParser and empty constructor.
*/
public Digester(XMLReader reader) {
@@ -623,7 +623,7 @@ public class Digester extends DefaultHandler {
/**
- * Set the publid id of the current file being parse.
+ * Set the public id of the current file being parse.
* @param publicId the DTD/Schema public's id.
*/
public void setPublicId(String publicId){
@@ -1722,7 +1722,7 @@ public class Digester extends DefaultHandler {
* for a single parameter from the body of this element)
* @param paramTypes Set of Java class names for the types
* of the expected parameters
- * (if you wish to use a primitive type, specify the corresonding
+ * (if you wish to use a primitive type, specify the corresponding
* Java wrapper class instead, such as java.lang.Boolean
* for a boolean parameter)
* @see CallMethodRule
@@ -1751,7 +1751,7 @@ public class Digester extends DefaultHandler {
* @param paramCount Number of expected parameters (or zero
* for a single parameter from the body of this element)
* @param paramTypes The Java class names of the arguments
- * (if you wish to use a primitive type, specify the corresonding
+ * (if you wish to use a primitive type, specify the corresponding
* Java wrapper class instead, such as java.lang.Boolean
* for a boolean parameter)
* @see CallMethodRule
@@ -2155,7 +2155,7 @@ public class Digester extends DefaultHandler {
* @param pattern Element matching pattern
* @param methodName Method name to call on the parent element
* @param paramType Java class name of the expected parameter type
- * (if you wish to use a primitive type, specify the corresonding
+ * (if you wish to use a primitive type, specify the corresponding
* Java wrapper class instead, such as java.lang.Boolean
* for a boolean parameter)
* @see SetNextRule
@@ -2289,7 +2289,7 @@ public class Digester extends DefaultHandler {
* @param pattern Element matching pattern
* @param methodName Method name to call on the parent element
* @param paramType Java class name of the expected parameter type
- * (if you wish to use a primitive type, specify the corresonding
+ * (if you wish to use a primitive type, specify the corresponding
* Java wrapper class instead, such as java.lang.Boolean
* for a boolean parameter)
* @see SetTopRule
diff --git a/java/org/apache/tomcat/util/digester/FactoryCreateRule.java b/java/org/apache/tomcat/util/digester/FactoryCreateRule.java
index a9078eb33..c1153564a 100644
--- a/java/org/apache/tomcat/util/digester/FactoryCreateRule.java
+++ b/java/org/apache/tomcat/util/digester/FactoryCreateRule.java
@@ -28,7 +28,7 @@ import org.xml.sax.Attributes;
* complete, the object will be popped.
This rule is intended in situations where the element's attributes are
- * needed before the object can be created. A common senario is for the
+ * needed before the object can be created. A common scenario is for the
* ObjectCreationFactory implementation to use the attributes as parameters
* in a call to either a factory method or to a non-empty constructor.
*/
diff --git a/java/org/apache/tomcat/util/digester/GenericParser.java b/java/org/apache/tomcat/util/digester/GenericParser.java
index 41cca6b81..6c6fedb44 100644
--- a/java/org/apache/tomcat/util/digester/GenericParser.java
+++ b/java/org/apache/tomcat/util/digester/GenericParser.java
@@ -57,7 +57,7 @@ public class GenericParser{
"http://java.sun.com/xml/jaxp/properties/schemaLanguage";
/**
- * Create a SAXParser configured to support XML Scheman and DTD
+ * Create a SAXParser configured to support XML Schema and DTD
* @param properties parser specific properties/features
* @return an XML Schema/DTD enabled SAXParser
*/
diff --git a/java/org/apache/tomcat/util/digester/NodeCreateRule.java b/java/org/apache/tomcat/util/digester/NodeCreateRule.java
index 17ee023ea..2c49550ee 100644
--- a/java/org/apache/tomcat/util/digester/NodeCreateRule.java
+++ b/java/org/apache/tomcat/util/digester/NodeCreateRule.java
@@ -46,7 +46,7 @@ import org.xml.sax.helpers.DefaultHandler;
* containing all XML content underneath that element.
*
Public interface defining a shorthand means of configuring a complete
* set of related Rule definitions, possibly associated with
* a particular namespace URI, in one operation. To use an instance of a
- * class that imlements this interface:
RuleSet to be relevant
diff --git a/java/org/apache/tomcat/util/digester/RulesBase.java b/java/org/apache/tomcat/util/digester/RulesBase.java
index b9c4471a8..0c3b48531 100644
--- a/java/org/apache/tomcat/util/digester/RulesBase.java
+++ b/java/org/apache/tomcat/util/digester/RulesBase.java
@@ -52,7 +52,7 @@ public class RulesBase implements Rules {
/**
* The set of registered Rule instances, keyed by the matching pattern.
* Each value is a List containing the Rules for that pattern, in the
- * order that they were orginally registered.
+ * order that they were originally registered.
*/
protected HashMapjava.lang.Boolean
* for a boolean parameter)
*
@@ -98,7 +98,7 @@ public class SetNextRule extends Rule {
*
* @param methodName Method name of the parent method to call
* @param paramType Java class of the parent method's argument
- * (if you wish to use a primitive type, specify the corresonding
+ * (if you wish to use a primitive type, specify the corresponding
* Java wrapper class instead, such as java.lang.Boolean
* for a boolean parameter)
*/
@@ -137,7 +137,7 @@ public class SetNextRule extends Rule {
* Is exact matching being used.
* *This rule uses org.apache.commons.beanutils.MethodUtils
- * to introspect the relevent objects so that the right method can be called.
+ * to introspect the relevant objects so that the right method can be called.
* Originally, MethodUtils.invokeExactMethod was used.
* This matches methods very strictly
* and so may not find a matching method when one exists.
diff --git a/java/org/apache/tomcat/util/digester/SetPropertiesRule.java b/java/org/apache/tomcat/util/digester/SetPropertiesRule.java
index a535df657..c4e7be6df 100644
--- a/java/org/apache/tomcat/util/digester/SetPropertiesRule.java
+++ b/java/org/apache/tomcat/util/digester/SetPropertiesRule.java
@@ -84,7 +84,7 @@ public class SetPropertiesRule extends Rule {
}
/**
- *
Constructor allows attribute->property mapping to be overriden.
+ *Constructor allows attribute->property mapping to be overridden.
* *Two arrays are passed in. * One contains the attribute names and the other the property names. @@ -93,7 +93,7 @@ public class SetPropertiesRule extends Rule { * to the first string in the property name list and so on.
* *If a property name is null or the attribute name has no matching - * property name, then this indicates that the attibute should be ignored.
+ * property name, then this indicates that the attribute should be ignored. * * The following constructs a rule that maps the alt-city
diff --git a/java/org/apache/tomcat/util/digester/SetPropertyRule.java b/java/org/apache/tomcat/util/digester/SetPropertyRule.java
index 5bb9b7f2e..b4b530e54 100644
--- a/java/org/apache/tomcat/util/digester/SetPropertyRule.java
+++ b/java/org/apache/tomcat/util/digester/SetPropertyRule.java
@@ -100,7 +100,7 @@ public class SetPropertyRule extends Rule {
* @param attributes The attribute list for this element
*
* @exception NoSuchMethodException if the bean does not
- * have a writeable property of the specified name
+ * have a writable property of the specified name
*/
@Override
public void begin(String namespace, String theName, Attributes attributes)
diff --git a/java/org/apache/tomcat/util/digester/SetRootRule.java b/java/org/apache/tomcat/util/digester/SetRootRule.java
index da4b89fb8..0a7365774 100644
--- a/java/org/apache/tomcat/util/digester/SetRootRule.java
+++ b/java/org/apache/tomcat/util/digester/SetRootRule.java
@@ -64,7 +64,7 @@ public class SetRootRule extends Rule {
* @param digester The associated Digester
* @param methodName Method name of the parent method to call
* @param paramType Java class of the parent method's argument
- * (if you wish to use a primitive type, specify the corresonding
+ * (if you wish to use a primitive type, specify the corresponding
* Java wrapper class instead, such as java.lang.Boolean
* for a boolean parameter)
*
@@ -98,7 +98,7 @@ public class SetRootRule extends Rule {
*
* @param methodName Method name of the parent method to call
* @param paramType Java class of the parent method's argument
- * (if you wish to use a primitive type, specify the corresonding
+ * (if you wish to use a primitive type, specify the corresponding
* Java wrapper class instead, such as java.lang.Boolean
* for a boolean parameter)
*/
@@ -137,7 +137,7 @@ public class SetRootRule extends Rule {
*
Is exact matching being used.
* *This rule uses org.apache.commons.beanutils.MethodUtils
- * to introspect the relevent objects so that the right method can be called.
+ * to introspect the relevant objects so that the right method can be called.
* Originally, MethodUtils.invokeExactMethod was used.
* This matches methods very strictly
* and so may not find a matching method when one exists.
diff --git a/java/org/apache/tomcat/util/digester/SetTopRule.java b/java/org/apache/tomcat/util/digester/SetTopRule.java
index ef4175cc8..0beda2a50 100644
--- a/java/org/apache/tomcat/util/digester/SetTopRule.java
+++ b/java/org/apache/tomcat/util/digester/SetTopRule.java
@@ -64,7 +64,7 @@ public class SetTopRule extends Rule {
* @param digester The associated Digester
* @param methodName Method name of the "set parent" method to call
* @param paramType Java class of the "set parent" method's argument
- * (if you wish to use a primitive type, specify the corresonding
+ * (if you wish to use a primitive type, specify the corresponding
* Java wrapper class instead, such as java.lang.Boolean
* for a boolean parameter)
*
@@ -98,7 +98,7 @@ public class SetTopRule extends Rule {
*
* @param methodName Method name of the "set parent" method to call
* @param paramType Java class of the "set parent" method's argument
- * (if you wish to use a primitive type, specify the corresonding
+ * (if you wish to use a primitive type, specify the corresponding
* Java wrapper class instead, such as java.lang.Boolean
* for a boolean parameter)
*/
@@ -137,7 +137,7 @@ public class SetTopRule extends Rule {
*
Is exact matching being used.
* *This rule uses org.apache.commons.beanutils.MethodUtils
- * to introspect the relevent objects so that the right method can be called.
+ * to introspect the relevant objects so that the right method can be called.
* Originally, MethodUtils.invokeExactMethod was used.
* This matches methods very strictly
* and so may not find a matching method when one exists.
diff --git a/java/org/apache/tomcat/util/digester/WithDefaultsRulesWrapper.java b/java/org/apache/tomcat/util/digester/WithDefaultsRulesWrapper.java
index 12bc64491..5156d3fb2 100644
--- a/java/org/apache/tomcat/util/digester/WithDefaultsRulesWrapper.java
+++ b/java/org/apache/tomcat/util/digester/WithDefaultsRulesWrapper.java
@@ -80,7 +80,7 @@ public class WithDefaultsRulesWrapper implements Rules {
return wrappedRules.getDigester();
}
- /** Sets digeseter using these Rules */
+ /** Sets digester using these Rules */
public void setDigester(Digester digester) {
wrappedRules.setDigester(digester);
Iterator
* encapsulation := delimiter body CRLF
* delimiter := "--" boundary CRLF
- * close-delimiter := "--" boudary "--"
+ * close-delimiter := "--" boundary "--"
* preamble := <ignore>
* epilogue := <ignore>
* body := header-part CRLF body-part
@@ -249,7 +249,7 @@ public class MultipartStream {
/**
- * The index of last valid characer in the buffer + 1.
+ * The index of last valid character in the buffer + 1.
*
* 0 <= tail <= bufSize
*/
@@ -296,7 +296,7 @@ public class MultipartStream {
this.buffer = new byte[bufSize];
this.notifier = pNotifier;
- // We prepend CR/LF to the boundary to chop trailng CR/LF from
+ // We prepend CR/LF to the boundary to chop trailing CR/LF from
// body-data tokens.
this.boundary = new byte[boundary.length + BOUNDARY_PREFIX.length];
this.boundaryLength = boundary.length + BOUNDARY_PREFIX.length;
@@ -584,7 +584,7 @@ public class MultipartStream {
// Discard all data up to the delimiter.
discardBodyData();
- // Read boundary - if succeded, the stream contains an
+ // Read boundary - if succeeded, the stream contains an
// encapsulation.
return readBoundary();
} catch (MalformedStreamException e) {
diff --git a/java/org/apache/tomcat/util/http/mapper/Mapper.java b/java/org/apache/tomcat/util/http/mapper/Mapper.java
index d4a54ed86..fe8dd6815 100644
--- a/java/org/apache/tomcat/util/http/mapper/Mapper.java
+++ b/java/org/apache/tomcat/util/http/mapper/Mapper.java
@@ -983,7 +983,7 @@ public final class Mapper {
/**
- * Find a map elemnt given its name in a sorted array of map elements.
+ * Find a map element given its name in a sorted array of map elements.
* This will return the index for the closest inferior or equal item in the
* given array.
*/
@@ -993,7 +993,7 @@ public final class Mapper {
/**
- * Find a map elemnt given its name in a sorted array of map elements.
+ * Find a map element given its name in a sorted array of map elements.
* This will return the index for the closest inferior or equal item in the
* given array.
*/
@@ -1039,7 +1039,7 @@ public final class Mapper {
}
/**
- * Find a map elemnt given its name in a sorted array of map elements.
+ * Find a map element given its name in a sorted array of map elements.
* This will return the index for the closest inferior or equal item in the
* given array.
*/
@@ -1049,7 +1049,7 @@ public final class Mapper {
/**
- * Find a map elemnt given its name in a sorted array of map elements.
+ * Find a map element given its name in a sorted array of map elements.
* This will return the index for the closest inferior or equal item in the
* given array.
*/
diff --git a/java/org/apache/tomcat/util/modeler/AttributeInfo.java b/java/org/apache/tomcat/util/modeler/AttributeInfo.java
index 6560dba03..808267dd8 100644
--- a/java/org/apache/tomcat/util/modeler/AttributeInfo.java
+++ b/java/org/apache/tomcat/util/modeler/AttributeInfo.java
@@ -107,7 +107,7 @@ public class AttributeInfo extends FeatureInfo implements Serializable {
}
/**
- * Is this attribute writeable by management applications?
+ * Is this attribute writable by management applications?
*/
public boolean isWriteable() {
return (this.writeable);
diff --git a/java/org/apache/tomcat/util/modeler/BaseModelMBean.java b/java/org/apache/tomcat/util/modeler/BaseModelMBean.java
index 4cecf75aa..3441d6210 100644
--- a/java/org/apache/tomcat/util/modeler/BaseModelMBean.java
+++ b/java/org/apache/tomcat/util/modeler/BaseModelMBean.java
@@ -56,7 +56,7 @@ import org.apache.juli.logging.LogFactory;
* - remove methods not used in tomcat and redundant/not very generic
* - must be created from the ManagedBean - I don't think there were any direct
* uses, but now it is required.
- * - some of the gratuituous flexibility removed - instead this is more predictive and
+ * - some of the gratuitous flexibility removed - instead this is more predictive and
* strict with the use cases.
* - all Method and metadata is stored in ManagedBean. BaseModelBMean and ManagedBean act
* like Object and Class.
@@ -81,7 +81,7 @@ import org.apache.juli.logging.LogFactory;
* Limitations:
*
*
objectReference are
- * supportd.
invoke() are immediately executed.