Consistently use American English spelling

Since the Spring Framework uses American English spelling, this commit
updates Javadoc and the reference manual to ensure consistency in that
regard. However, there are two exceptions to this rule that arise due
to their use within a technical context.

- We use "cancelled/cancelling" instead of "canceled/canceling" in
  numerous places (including error messages).
- We use "implementor" instead of "implementer".

Closes gh-36470

(cherry picked from commit 17699103dc)
This commit is contained in:
Sam Brannen
2026-03-15 17:16:39 +01:00
parent 10faa7fdff
commit 0c4ed55fd2
35 changed files with 115 additions and 135 deletions
@@ -20,7 +20,7 @@ import java.lang.reflect.Method;
import java.util.List;
/**
* MethodFilter instances allow SpEL users to fine tune the behaviour of the method
* MethodFilter instances allow SpEL users to fine tune the behavior of the method
* resolution process. Method resolution (which translates from a method name in an
* expression to a real method to invoke) will normally retrieve candidate methods for
* invocation via a simple call to 'Class.getMethods()' and will choose the first one that
@@ -243,7 +243,7 @@ class ExpressionLanguageScenarioTests extends AbstractExpressionTests {
/**
* Regardless of the current context object, or root context object, this resolver can tell you what colour a fruit is !
* Regardless of the current context object, or root context object, this resolver can tell you what color a fruit is !
* It only supports property reading, not writing. To support writing it would need to override canWrite() and write()
*/
private static class FruitColourAccessor implements PropertyAccessor {
@@ -284,7 +284,7 @@ class ExpressionLanguageScenarioTests extends AbstractExpressionTests {
/**
* Regardless of the current context object, or root context object, this resolver can tell you what colour a vegetable is !
* Regardless of the current context object, or root context object, this resolver can tell you what color a vegetable is !
* It only supports property reading, not writing.
*/
private static class VegetableColourAccessor implements PropertyAccessor {