Fix common typos and grammatical mistakes

Closes gh-36471
This commit is contained in:
Sam Brannen
2026-03-15 17:05:29 +01:00
parent 17699103dc
commit 5eb0e99d58
25 changed files with 46 additions and 46 deletions
@@ -17,7 +17,7 @@
package org.springframework.expression;
/**
* Implementers of this interface are expected to be able to locate types.
* Implementors of this interface are expected to be able to locate types.
*
* <p>They may use a custom {@link ClassLoader} and/or deal with common package
* prefixes (for example, {@code java.lang}) however they wish.
@@ -45,7 +45,7 @@ import org.springframework.util.ReflectionUtils;
*
* <p>{@code ReflectiveIndexAccessor} also implements {@link CompilableIndexAccessor}
* in order to support compilation to bytecode for read access. Note, however,
* that the configured read-method must be invokable via a public class or public
* that the configured read-method must be invocable via a public class or public
* interface for compilation to succeed.
*
* <h3>Example</h3>
@@ -310,7 +310,7 @@ class SetValueTests extends AbstractExpressionTests {
if (DEBUG) {
SpelUtilities.printAbstractSyntaxTree(System.out, e);
}
assertThat(e.isWritable(context)).as("Expression is not writeable but should be").isTrue();
assertThat(e.isWritable(context)).as("Expression is not writable but should be").isTrue();
e.setValue(context, value);
assertThat(e.getValue(context, expectedType)).as("Retrieved value was not equal to set value").isEqualTo(value);
}
@@ -330,7 +330,7 @@ class SetValueTests extends AbstractExpressionTests {
if (DEBUG) {
SpelUtilities.printAbstractSyntaxTree(System.out, e);
}
assertThat(e.isWritable(context)).as("Expression is not writeable but should be").isTrue();
assertThat(e.isWritable(context)).as("Expression is not writable but should be").isTrue();
e.setValue(context, value);
assertThat(expectedValue).isEqualTo(e.getValue(context));
}
@@ -186,11 +186,11 @@ class ReflectionHelperTests extends AbstractExpressionTests {
// Passing (Super) on call to (Sub[]) is not a match
checkMatchVarargs(new Class<?>[] {Super.class}, new Class<?>[] {Sub[].class}, tc, null);
checkMatchVarargs(new Class<?>[] {Unconvertable.class, String.class}, new Class<?>[] {Sub.class, Super[].class}, tc, null);
checkMatchVarargs(new Class<?>[] {Unconvertible.class, String.class}, new Class<?>[] {Sub.class, Super[].class}, tc, null);
checkMatchVarargs(new Class<?>[] {Integer.class, Integer.class, String.class}, new Class<?>[] {String.class, String.class, Super[].class}, tc, null);
checkMatchVarargs(new Class<?>[] {Unconvertable.class, String.class}, new Class<?>[] {Sub.class, Super[].class}, tc, null);
checkMatchVarargs(new Class<?>[] {Unconvertible.class, String.class}, new Class<?>[] {Sub.class, Super[].class}, tc, null);
checkMatchVarargs(new Class<?>[] {Integer.class, Integer.class, String.class}, new Class<?>[] {String.class, String.class, Super[].class}, tc, null);
@@ -519,7 +519,7 @@ class ReflectionHelperTests extends AbstractExpressionTests {
}
static class Unconvertable {
static class Unconvertible {
}