This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 7.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 71bb6d546927212224204eef4cd4ef911b469d97 Author: Mark Thomas <ma...@apache.org> AuthorDate: Wed Sep 16 18:04:39 2020 +0100 Fix spellings in docs Based on a PR provided by John Bampton --- java/org/apache/tomcat/util/compat/Jre9Compat.java | 2 +- java/org/apache/tomcat/util/compat/JreCompat.java | 2 +- java/org/apache/tomcat/util/digester/ArrayStack.java | 2 +- java/org/apache/tomcat/util/digester/ObjectCreationFactory.java | 2 +- java/org/apache/tomcat/util/digester/package.html | 6 +++--- java/org/apache/tomcat/util/modeler/modules/package.html | 2 +- java/org/apache/tomcat/util/net/AprEndpoint.java | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java/org/apache/tomcat/util/compat/Jre9Compat.java b/java/org/apache/tomcat/util/compat/Jre9Compat.java index f253f93..66650c8 100644 --- a/java/org/apache/tomcat/util/compat/Jre9Compat.java +++ b/java/org/apache/tomcat/util/compat/Jre9Compat.java @@ -254,7 +254,7 @@ class Jre9Compat extends Jre8Compat { @Override - public boolean canAcccess(Object base, AccessibleObject accessibleObject) { + public boolean canAccess(Object base, AccessibleObject accessibleObject) { try { return ((Boolean) canAccessMethod.invoke(accessibleObject, base)).booleanValue(); } catch (IllegalArgumentException e) { diff --git a/java/org/apache/tomcat/util/compat/JreCompat.java b/java/org/apache/tomcat/util/compat/JreCompat.java index e7a3b4f..32835c5 100644 --- a/java/org/apache/tomcat/util/compat/JreCompat.java +++ b/java/org/apache/tomcat/util/compat/JreCompat.java @@ -386,7 +386,7 @@ public class JreCompat { * @return {code true} if the AccessibleObject can be accessed otherwise * {code false} */ - public boolean canAcccess(Object base, AccessibleObject accessibleObject) { + public boolean canAccess(Object base, AccessibleObject accessibleObject) { // Java 8 doesn't support modules so default to true return true; } diff --git a/java/org/apache/tomcat/util/digester/ArrayStack.java b/java/org/apache/tomcat/util/digester/ArrayStack.java index d0fdaa6..29b1037 100644 --- a/java/org/apache/tomcat/util/digester/ArrayStack.java +++ b/java/org/apache/tomcat/util/digester/ArrayStack.java @@ -23,7 +23,7 @@ import java.util.EmptyStackException; * <p>Imported copy of the <code>ArrayStack</code> class from * Commons Collections, which was the only direct dependency from Digester.</p> * - * <p><strong>WARNNG</strong> - This class is public solely to allow it to be + * <p><strong>WARNING</strong> - This class is public solely to allow it to be * used from subpackages of <code>org.apache.commons.digester</code>. * It should not be considered part of the public API of Commons Digester. * If you want to use such a class yourself, you should use the one from diff --git a/java/org/apache/tomcat/util/digester/ObjectCreationFactory.java b/java/org/apache/tomcat/util/digester/ObjectCreationFactory.java index ab6856b..8e873b3 100644 --- a/java/org/apache/tomcat/util/digester/ObjectCreationFactory.java +++ b/java/org/apache/tomcat/util/digester/ObjectCreationFactory.java @@ -37,7 +37,7 @@ public interface ObjectCreationFactory { * object based on the element's attributes. * * @param attributes the element's attributes - * + * @return the created object * @throws Exception any exception thrown will be propagated upwards */ public Object createObject(Attributes attributes) throws Exception; diff --git a/java/org/apache/tomcat/util/digester/package.html b/java/org/apache/tomcat/util/digester/package.html index 6446504..c7d0d06 100644 --- a/java/org/apache/tomcat/util/digester/package.html +++ b/java/org/apache/tomcat/util/digester/package.html @@ -255,7 +255,7 @@ features of the Digester functionality:</p> parser is that the Digester automatically navigates the element hierarchy of the XML document you are parsing for you, without requiring any developer attention to this process. Instead, you focus on deciding what functions you -would like to have performed whenver a certain arrangement of nested elements +would like to have performed whenever a certain arrangement of nested elements is encountered in the XML document being parsed. The mechanism for specifying such arrangements are called <em>element matching patterns</em>. @@ -977,7 +977,7 @@ public class MyRuleSet extends RuleSetBase { <ul> <li>The application that is using these rules does not need to know anything about the fact that the <code>RuleSet</code> being used is associated - with a particular namespace URI. That knowledge is emedded inside the + with a particular namespace URI. That knowledge is embedded inside the <code>RuleSet</code> class itself.</li> <li>If desired, you could make a set of rules work for more than one namespace URI by providing constructors on the <code>RuleSet</code> to @@ -1028,7 +1028,7 @@ accessed through calls to: <p> <strong>Note:</strong> all stack names beginning with <code>org.apache.commons.digester</code> are reserved for future use by the <code>Digester</code> component. It is also recommended -that users choose stack names perfixed by the name of their own domain to avoid conflicts +that users choose stack names prefixed by the name of their own domain to avoid conflicts with other <code>Rule</code> implementations. </p> diff --git a/java/org/apache/tomcat/util/modeler/modules/package.html b/java/org/apache/tomcat/util/modeler/modules/package.html index 402889a..e315bf6 100644 --- a/java/org/apache/tomcat/util/modeler/modules/package.html +++ b/java/org/apache/tomcat/util/modeler/modules/package.html @@ -20,7 +20,7 @@ </head> <body> <p>Implementation classes - should not be used directly. The API is not stable -but eventually the code will be refactored as a collection of mbeans that will be useable +but eventually the code will be refactored as a collection of mbeans that will be usable ( more or less ) independently.</p> <p>The MbeanDescriptors* classes are used to extract metadata from different sources. They diff --git a/java/org/apache/tomcat/util/net/AprEndpoint.java b/java/org/apache/tomcat/util/net/AprEndpoint.java index c94fd7c..6226aee 100644 --- a/java/org/apache/tomcat/util/net/AprEndpoint.java +++ b/java/org/apache/tomcat/util/net/AprEndpoint.java @@ -2169,7 +2169,7 @@ public class AprEndpoint extends AbstractEndpoint<Long> { * will be handled asynchronously inside the kernel. As a result, * the poller will never be used. * - * @param data containing the reference to the data which should be snet + * @param data containing the reference to the data which should be sent * @return true if all the data has been sent right away, and false * otherwise */ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org