This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit af51f770ca2f24a0f8a6d176724458af7286d85c Author: Mark Thomas <[email protected]> AuthorDate: Wed Sep 16 17:21:31 2020 +0100 Fix spelling in coyote, el, jasper and naming Based on a PR provided by John Bampton i18n keys, local variables, Javadoc and private methods and private classes - changes are low risk There is one change to a public class (o.a.el.util.JreCompat) but that is effectively an internal API so I think it is safe to make. --- java/org/apache/coyote/AsyncStateMachine.java | 2 +- java/org/apache/coyote/http2/Http2AsyncParser.java | 6 +++--- java/org/apache/el/Messages.properties | 2 +- java/org/apache/el/parser/AstFunction.java | 4 ++-- java/org/apache/el/util/Jre9Compat.java | 2 +- java/org/apache/el/util/JreCompat.java | 2 +- java/org/apache/el/util/ReflectionUtil.java | 2 +- java/org/apache/jasper/compiler/ELParser.java | 2 +- java/org/apache/jasper/compiler/Generator.java | 2 +- java/org/apache/jasper/runtime/BodyContentImpl.java | 2 +- java/org/apache/naming/StringManager.java | 2 +- 11 files changed, 14 insertions(+), 14 deletions(-) diff --git a/java/org/apache/coyote/AsyncStateMachine.java b/java/org/apache/coyote/AsyncStateMachine.java index be4b953..7b28ad2 100644 --- a/java/org/apache/coyote/AsyncStateMachine.java +++ b/java/org/apache/coyote/AsyncStateMachine.java @@ -60,7 +60,7 @@ import org.apache.tomcat.util.security.PrivilegedSetTccl; * DISPATCHING - The dispatch is being processed. * MUST_ERROR - ServletRequest.startAsync() has been called from * Servlet.service() but, before service() exited, an I/O - * error occured on another thread. The container will + * error occurred on another thread. The container will * perform the necessary error handling when * Servlet.service() exits. * ERROR - Something went wrong. diff --git a/java/org/apache/coyote/http2/Http2AsyncParser.java b/java/org/apache/coyote/http2/Http2AsyncParser.java index 665b0f3..c76effc 100644 --- a/java/org/apache/coyote/http2/Http2AsyncParser.java +++ b/java/org/apache/coyote/http2/Http2AsyncParser.java @@ -50,10 +50,10 @@ class Http2AsyncParser extends Http2Parser { byte[] prefaceData = new byte[CLIENT_PREFACE_START.length]; ByteBuffer preface = ByteBuffer.wrap(prefaceData); ByteBuffer header = ByteBuffer.allocate(9); - ByteBuffer framePaylod = ByteBuffer.allocate(input.getMaxFrameSize()); - PrefaceCompletionHandler handler = new PrefaceCompletionHandler(webConnection, stream, prefaceData, preface, header, framePaylod); + ByteBuffer framePayload = ByteBuffer.allocate(input.getMaxFrameSize()); + PrefaceCompletionHandler handler = new PrefaceCompletionHandler(webConnection, stream, prefaceData, preface, header, framePayload); socketWrapper.read(BlockingMode.NON_BLOCK, socketWrapper.getReadTimeout(), TimeUnit.MILLISECONDS, null, - handler, handler, preface, header, framePaylod); + handler, handler, preface, header, framePayload); } diff --git a/java/org/apache/el/Messages.properties b/java/org/apache/el/Messages.properties index 6571b12..1bf600d 100644 --- a/java/org/apache/el/Messages.properties +++ b/java/org/apache/el/Messages.properties @@ -59,7 +59,7 @@ error.fnMapper.paramcount=Function [{0}] specifies [{1}] params, but [{2}] were error.context.null=ELContext was null # Parser -error.funciton.tooManyMethodParameterSets=There are multiple sets of parameters specified for function [{0}] +error.function.tooManyMethodParameterSets=There are multiple sets of parameters specified for function [{0}] error.identifier.noMethod=Identity [{0}] was null and was unable to invoke error.identifier.notjava=The identifier [{0}] is not a valid Java identifier as required by section 1.19 of the EL specification (Identifier ::= Java language identifier). This check can be disabled by setting the system property org.apache.el.parser.SKIP_IDENTIFIER_CHECK to true. error.identifier.notMethodExpression=Identity [{0}] does not reference a method expression instance, returned type [{1}] diff --git a/java/org/apache/el/parser/AstFunction.java b/java/org/apache/el/parser/AstFunction.java index a95f83c..2c417c7 100644 --- a/java/org/apache/el/parser/AstFunction.java +++ b/java/org/apache/el/parser/AstFunction.java @@ -104,7 +104,7 @@ public final class AstFunction extends SimpleNode { if (varMapper != null) { obj = varMapper.resolveVariable(this.localName); if (obj instanceof ValueExpression) { - // See if this returns a LambdaEXpression + // See if this returns a LambdaExpression obj = ((ValueExpression) obj).getValue(ctx); } } @@ -153,7 +153,7 @@ public final class AstFunction extends SimpleNode { // single set of method parameters if (this.jjtGetNumChildren() != 1) { throw new ELException(MessageFactory.get( - "error.funciton.tooManyMethodParameterSets", + "error.function.tooManyMethodParameterSets", getOutputName())); } diff --git a/java/org/apache/el/util/Jre9Compat.java b/java/org/apache/el/util/Jre9Compat.java index 91cd7bc..3debecc 100644 --- a/java/org/apache/el/util/Jre9Compat.java +++ b/java/org/apache/el/util/Jre9Compat.java @@ -48,7 +48,7 @@ class Jre9Compat extends JreCompat { @Override - public boolean canAcccess(Object base, AccessibleObject accessibleObject) { + public boolean canAccess(Object base, AccessibleObject accessibleObject) { try { return ((Boolean) canAccessMethod.invoke(accessibleObject, base)).booleanValue(); } catch (ReflectiveOperationException | IllegalArgumentException e) { diff --git a/java/org/apache/el/util/JreCompat.java b/java/org/apache/el/util/JreCompat.java index ac01386..5c1fc6a 100644 --- a/java/org/apache/el/util/JreCompat.java +++ b/java/org/apache/el/util/JreCompat.java @@ -53,7 +53,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/el/util/ReflectionUtil.java b/java/org/apache/el/util/ReflectionUtil.java index 2bc4efd..b8565e8 100644 --- a/java/org/apache/el/util/ReflectionUtil.java +++ b/java/org/apache/el/util/ReflectionUtil.java @@ -428,7 +428,7 @@ public class ReflectionUtil { // If base is non-null, method may be static or non-static if (m == null || (Modifier.isPublic(type.getModifiers()) && - (jreCompat.canAcccess(base, m) || base != null && jreCompat.canAcccess(null, m)))) { + (jreCompat.canAccess(base, m) || base != null && jreCompat.canAccess(null, m)))) { return m; } Class<?>[] interfaces = type.getInterfaces(); diff --git a/java/org/apache/jasper/compiler/ELParser.java b/java/org/apache/jasper/compiler/ELParser.java index 11276b3..3bcef5b 100644 --- a/java/org/apache/jasper/compiler/ELParser.java +++ b/java/org/apache/jasper/compiler/ELParser.java @@ -141,7 +141,7 @@ public class ELParser { } /** - * Parse for a function FunctionInvokation ::= (identifier ':')? identifier + * Parse for a function FunctionInvocation ::= (identifier ':')? identifier * '(' (Expression (,Expression)*)? ')' Note: currently we don't parse * arguments */ diff --git a/java/org/apache/jasper/compiler/Generator.java b/java/org/apache/jasper/compiler/Generator.java index ad8b29e..bcd0412 100644 --- a/java/org/apache/jasper/compiler/Generator.java +++ b/java/org/apache/jasper/compiler/Generator.java @@ -1361,7 +1361,7 @@ class Generator { if (!Modifier.isPublic(modifiers) || Modifier.isInterface(modifiers) || Modifier.isAbstract(modifiers) || - !jreCompat.canAcccess(null, constructor) ) { + !jreCompat.canAccess(null, constructor) ) { throw new Exception(Localizer.getMessage("jsp.error.invalid.bean", Integer.valueOf(modifiers))); } diff --git a/java/org/apache/jasper/runtime/BodyContentImpl.java b/java/org/apache/jasper/runtime/BodyContentImpl.java index 2164a83..fcb9778 100644 --- a/java/org/apache/jasper/runtime/BodyContentImpl.java +++ b/java/org/apache/jasper/runtime/BodyContentImpl.java @@ -55,7 +55,7 @@ public class BodyContentImpl extends BodyContent { * Constructor. * @param enclosingWriter The wrapped writer * @param limitBuffer <code>true</code> to discard large buffers - * @param tagBufferSize the buffer sise + * @param tagBufferSize the buffer size */ public BodyContentImpl(JspWriter enclosingWriter, boolean limitBuffer, int tagBufferSize) { super(enclosingWriter); diff --git a/java/org/apache/naming/StringManager.java b/java/org/apache/naming/StringManager.java index 8e9922d..c8be35c 100644 --- a/java/org/apache/naming/StringManager.java +++ b/java/org/apache/naming/StringManager.java @@ -26,7 +26,7 @@ import java.util.ResourceBundle; /** * An internationalization / localization helper class which reduces * the bother of handling ResourceBundles and takes care of the - * common cases of message formating which otherwise require the + * common cases of message formatting which otherwise require the * creation of Object arrays and such. * * <p>The StringManager operates on a package basis. One StringManager --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
