mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-06 23:19:03 +00:00
Fix common typos and grammatical mistakes
Closes gh-36471
This commit is contained in:
@@ -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.
|
||||
|
||||
+1
-1
@@ -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>
|
||||
|
||||
+2
-2
@@ -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));
|
||||
}
|
||||
|
||||
+3
-3
@@ -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 {
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user