diff --git a/spring-aop/src/main/java/org/aopalliance/intercept/MethodInvocation.java b/spring-aop/src/main/java/org/aopalliance/intercept/MethodInvocation.java index 6314824d765..cb467ff8850 100644 --- a/spring-aop/src/main/java/org/aopalliance/intercept/MethodInvocation.java +++ b/spring-aop/src/main/java/org/aopalliance/intercept/MethodInvocation.java @@ -32,7 +32,7 @@ public interface MethodInvocation extends Invocation { /** * Get the method being called. - *
This method is a frienly implementation of the + *
This method is a friendly implementation of the * {@link Joinpoint#getStaticPart()} method (same result). * @return the method being called */ diff --git a/spring-aop/src/main/java/org/springframework/aop/aspectj/AbstractAspectJAdvice.java b/spring-aop/src/main/java/org/springframework/aop/aspectj/AbstractAspectJAdvice.java index 57b73ed659e..5c22ed46e1c 100644 --- a/spring-aop/src/main/java/org/springframework/aop/aspectj/AbstractAspectJAdvice.java +++ b/spring-aop/src/main/java/org/springframework/aop/aspectj/AbstractAspectJAdvice.java @@ -63,7 +63,7 @@ import org.springframework.util.StringUtils; public abstract class AbstractAspectJAdvice implements Advice, AspectJPrecedenceInformation, Serializable { /** - * Key used in ReflectiveMethodInvocation userAtributes map for the current joinpoint. + * Key used in ReflectiveMethodInvocation userAttributes map for the current joinpoint. */ protected static final String JOIN_POINT_KEY = JoinPoint.class.getName(); diff --git a/spring-aop/src/test/java/org/springframework/aop/aspectj/annotation/AbstractAspectJAdvisorFactoryTests.java b/spring-aop/src/test/java/org/springframework/aop/aspectj/annotation/AbstractAspectJAdvisorFactoryTests.java index 46f27fdde05..3a0ca52ce70 100644 --- a/spring-aop/src/test/java/org/springframework/aop/aspectj/annotation/AbstractAspectJAdvisorFactoryTests.java +++ b/spring-aop/src/test/java/org/springframework/aop/aspectj/annotation/AbstractAspectJAdvisorFactoryTests.java @@ -758,7 +758,7 @@ public abstract class AbstractAspectJAdvisorFactoryTests { @Around(value="setAge(age)",argNames="age") // @ArgNames({"age"}) // AMC needs more work here? ignoring pjp arg... ok?? - // argNames should be suported in Around as it is in Pointcut + // argNames should be supported in Around as it is in Pointcut public void changeReturnType(ProceedingJoinPoint pjp, int age) throws Throwable { pjp.proceed(new Object[] {age*2}); } @@ -884,12 +884,12 @@ public abstract class AbstractAspectJAdvisorFactoryTests { @Aspect abstract class AbstractMakeModifiable { - public interface MutableModifable extends Modifiable { + public interface MutableModifiable extends Modifiable { void markDirty(); } - public static class ModifiableImpl implements MutableModifable { + public static class ModifiableImpl implements MutableModifiable { private boolean modified; @@ -911,7 +911,7 @@ abstract class AbstractMakeModifiable { @Before(value="execution(void set*(*)) && this(modifiable) && args(newValue)", argNames="modifiable,newValue") public void recordModificationIfSetterArgumentDiffersFromOldValue( - JoinPoint jp, MutableModifable mixin, Object newValue) { + JoinPoint jp, MutableModifiable mixin, Object newValue) { /* * We use the mixin to check and, if necessary, change, @@ -972,7 +972,7 @@ class MakeITestBeanModifiable extends AbstractMakeModifiable { @DeclareParents(value = "org.springframework.tests.sample.beans.ITestBean+", defaultImpl=ModifiableImpl.class) - public static MutableModifable mixin; + public static MutableModifiable mixin; } diff --git a/spring-aop/src/test/java/org/springframework/aop/support/DelegatingIntroductionInterceptorTests.java b/spring-aop/src/test/java/org/springframework/aop/support/DelegatingIntroductionInterceptorTests.java index fa90846d9b5..d3a71d45ee5 100644 --- a/spring-aop/src/test/java/org/springframework/aop/support/DelegatingIntroductionInterceptorTests.java +++ b/spring-aop/src/test/java/org/springframework/aop/support/DelegatingIntroductionInterceptorTests.java @@ -157,7 +157,7 @@ public class DelegatingIntroductionInterceptorTests { TimeStamped ts = (TimeStamped) pf.getProxy(); assertThat(ts, instanceOf(TimeStamped.class)); - // Shoulnd't proxy framework interfaces + // Shouldn't proxy framework interfaces assertTrue(!(ts instanceof MethodInterceptor)); assertTrue(!(ts instanceof IntroductionInterceptor)); diff --git a/spring-beans/src/main/java/org/springframework/beans/BeanWrapperImpl.java b/spring-beans/src/main/java/org/springframework/beans/BeanWrapperImpl.java index bfdd2456032..109fbca842c 100644 --- a/spring-beans/src/main/java/org/springframework/beans/BeanWrapperImpl.java +++ b/spring-beans/src/main/java/org/springframework/beans/BeanWrapperImpl.java @@ -166,7 +166,7 @@ public class BeanWrapperImpl extends AbstractNestablePropertyAccessor implements } /** - * Obtain a lazily initializted CachedIntrospectionResults instance + * Obtain a lazily initialized CachedIntrospectionResults instance * for the wrapped object. */ private CachedIntrospectionResults getCachedIntrospectionResults() { diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/support/AutowireUtils.java b/spring-beans/src/main/java/org/springframework/beans/factory/support/AutowireUtils.java index dc7612dd61c..14ee8d0cfb2 100644 --- a/spring-beans/src/main/java/org/springframework/beans/factory/support/AutowireUtils.java +++ b/spring-beans/src/main/java/org/springframework/beans/factory/support/AutowireUtils.java @@ -158,7 +158,7 @@ abstract class AutowireUtils { * on the given method itself. *
For example, given a factory method with the following signature, if * {@code resolveReturnTypeForFactoryMethod()} is invoked with the reflected - * method for {@code creatProxy()} and an {@code Object[]} array containing + * method for {@code createProxy()} and an {@code Object[]} array containing * {@code MyService.class}, {@code resolveReturnTypeForFactoryMethod()} will * infer that the target return type is {@code MyService}. *
{@code public static T createProxy(Class clazz)}
diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/support/BeanDefinitionBuilder.java b/spring-beans/src/main/java/org/springframework/beans/factory/support/BeanDefinitionBuilder.java
index 2ef54e82cc7..6bb75e0768b 100644
--- a/spring-beans/src/main/java/org/springframework/beans/factory/support/BeanDefinitionBuilder.java
+++ b/spring-beans/src/main/java/org/springframework/beans/factory/support/BeanDefinitionBuilder.java
@@ -278,7 +278,7 @@ public final class BeanDefinitionBuilder {
}
/**
- * Set the depency check mode for this definition.
+ * Set the dependency check mode for this definition.
*/
public BeanDefinitionBuilder setDependencyCheck(int dependencyCheck) {
this.beanDefinition.setDependencyCheck(dependencyCheck);
diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/support/BeanDefinitionResource.java b/spring-beans/src/main/java/org/springframework/beans/factory/support/BeanDefinitionResource.java
index 59dc1267619..96dfcffde3f 100644
--- a/spring-beans/src/main/java/org/springframework/beans/factory/support/BeanDefinitionResource.java
+++ b/spring-beans/src/main/java/org/springframework/beans/factory/support/BeanDefinitionResource.java
@@ -39,7 +39,7 @@ class BeanDefinitionResource extends AbstractResource {
/**
* Create a new BeanDefinitionResource.
- * @param beanDefinition the BeanDefinition objectto wrap
+ * @param beanDefinition the BeanDefinition object to wrap
*/
public BeanDefinitionResource(BeanDefinition beanDefinition) {
Assert.notNull(beanDefinition, "BeanDefinition must not be null");
diff --git a/spring-beans/src/test/java/org/springframework/beans/BeanWrapperTests.java b/spring-beans/src/test/java/org/springframework/beans/BeanWrapperTests.java
index c4251bbc788..2d32c511248 100644
--- a/spring-beans/src/test/java/org/springframework/beans/BeanWrapperTests.java
+++ b/spring-beans/src/test/java/org/springframework/beans/BeanWrapperTests.java
@@ -89,7 +89,7 @@ public class BeanWrapperTests extends AbstractPropertyAccessorTests {
catch (PropertyBatchUpdateException ex) {
assertTrue("Must contain 2 exceptions", ex.getExceptionCount() == 2);
// Test validly set property matches
- assertTrue("Vaid set property must stick", target.getName().equals(newName));
+ assertTrue("Valid set property must stick", target.getName().equals(newName));
assertTrue("Invalid set property must retain old value", target.getAge() == 0);
assertTrue("New value of dodgy setter must be available through exception",
ex.getPropertyAccessException("touchy").getPropertyChangeEvent().getNewValue().equals(invalidTouchy));
diff --git a/spring-context-support/src/test/java/org/springframework/mail/javamail/InternetAddressEditorTests.java b/spring-context-support/src/test/java/org/springframework/mail/javamail/InternetAddressEditorTests.java
index fff03d58a63..9e9939d5f8b 100644
--- a/spring-context-support/src/test/java/org/springframework/mail/javamail/InternetAddressEditorTests.java
+++ b/spring-context-support/src/test/java/org/springframework/mail/javamail/InternetAddressEditorTests.java
@@ -58,7 +58,7 @@ public class InternetAddressEditorTests {
}
@Test
- public void simpleGoodAddess() {
+ public void simpleGoodAddress() {
editor.setAsText(SIMPLE);
assertEquals("Simple email address failed", SIMPLE, editor.getAsText());
}
diff --git a/spring-context/src/main/java/org/springframework/context/MessageSourceAware.java b/spring-context/src/main/java/org/springframework/context/MessageSourceAware.java
index 00ab3cb21e4..09912708e1b 100644
--- a/spring-context/src/main/java/org/springframework/context/MessageSourceAware.java
+++ b/spring-context/src/main/java/org/springframework/context/MessageSourceAware.java
@@ -38,7 +38,7 @@ public interface MessageSourceAware extends Aware {
* Invoked after population of normal bean properties but before an init * callback like InitializingBean's afterPropertiesSet or a custom init-method. * Invoked before ApplicationContextAware's setApplicationContext. - * @param messageSource message sourceto be used by this object + * @param messageSource message source to be used by this object */ void setMessageSource(MessageSource messageSource); diff --git a/spring-context/src/main/java/org/springframework/context/annotation/PropertySource.java b/spring-context/src/main/java/org/springframework/context/annotation/PropertySource.java index 9214b369a93..397b8b28f2e 100644 --- a/spring-context/src/main/java/org/springframework/context/annotation/PropertySource.java +++ b/spring-context/src/main/java/org/springframework/context/annotation/PropertySource.java @@ -138,7 +138,7 @@ import org.springframework.core.io.support.PropertySourceFactory; * last. * *
In certain situations, it may not be possible or practical to tightly control - * property source ordering when using {@code @ProperySource} annotations. For example, + * property source ordering when using {@code @PropertySource} annotations. For example, * if the {@code @Configuration} classes above were registered via component-scanning, * the ordering is difficult to predict. In such cases - and if overriding is important - * it is recommended that the user fall back to using the programmatic PropertySource API. diff --git a/spring-context/src/main/java/org/springframework/ejb/access/AbstractSlsbInvokerInterceptor.java b/spring-context/src/main/java/org/springframework/ejb/access/AbstractSlsbInvokerInterceptor.java index e62e74b0171..0db401da6e0 100644 --- a/spring-context/src/main/java/org/springframework/ejb/access/AbstractSlsbInvokerInterceptor.java +++ b/spring-context/src/main/java/org/springframework/ejb/access/AbstractSlsbInvokerInterceptor.java @@ -183,7 +183,7 @@ public abstract class AbstractSlsbInvokerInterceptor extends JndiObjectLocator /** - * Prepares the thread context if necessar, and delegates to + * Prepares the thread context if necessary, and delegates to * {@link #invokeInContext}. */ @Override diff --git a/spring-context/src/main/java/org/springframework/jmx/export/MBeanExportOperations.java b/spring-context/src/main/java/org/springframework/jmx/export/MBeanExportOperations.java index 8eab53dbac8..a315c39c046 100644 --- a/spring-context/src/main/java/org/springframework/jmx/export/MBeanExportOperations.java +++ b/spring-context/src/main/java/org/springframework/jmx/export/MBeanExportOperations.java @@ -23,7 +23,7 @@ import javax.management.ObjectName; * accessed by application developers during application runtime. * *
This interface should be used to export application resources to JMX using Spring's - * management interface generation capabilties and, optionally, it's {@link ObjectName} + * management interface generation capabilities and, optionally, it's {@link ObjectName} * generation capabilities. * * @author Rob Harrop diff --git a/spring-context/src/main/java/org/springframework/jmx/export/MBeanExporter.java b/spring-context/src/main/java/org/springframework/jmx/export/MBeanExporter.java index 6759d88b55a..971b7d8d0a1 100644 --- a/spring-context/src/main/java/org/springframework/jmx/export/MBeanExporter.java +++ b/spring-context/src/main/java/org/springframework/jmx/export/MBeanExporter.java @@ -509,7 +509,7 @@ public class MBeanExporter extends MBeanRegistrationSupport implements MBeanExpo /** * Register the defined beans with the {@link MBeanServer}. *
Each bean is exposed to the {@code MBeanServer} via a - * {@code ModelMBean}. The actual implemetation of the + * {@code ModelMBean}. The actual implementation of the * {@code ModelMBean} interface used depends on the implementation of * the {@code ModelMBeanProvider} interface that is configured. By * default the {@code RequiredModelMBean} class that is supplied with diff --git a/spring-context/src/main/java/org/springframework/jmx/export/assembler/MethodNameBasedMBeanInfoAssembler.java b/spring-context/src/main/java/org/springframework/jmx/export/assembler/MethodNameBasedMBeanInfoAssembler.java index 38f6583e783..94d53f6fce2 100644 --- a/spring-context/src/main/java/org/springframework/jmx/export/assembler/MethodNameBasedMBeanInfoAssembler.java +++ b/spring-context/src/main/java/org/springframework/jmx/export/assembler/MethodNameBasedMBeanInfoAssembler.java @@ -84,7 +84,7 @@ public class MethodNameBasedMBeanInfoAssembler extends AbstractConfigurableMBean * The property key should match the bean key and the property value should match * the list of method names. When searching for method names for a bean, Spring * will check these mappings first. - * @param mappings the mappins of bean keys to method names + * @param mappings the mappings of bean keys to method names */ public void setMethodMappings(Properties mappings) { this.methodMappings = new HashMap<>(); diff --git a/spring-context/src/main/java/org/springframework/jmx/export/notification/NotificationPublisher.java b/spring-context/src/main/java/org/springframework/jmx/export/notification/NotificationPublisher.java index 85e6feae916..057b87eefb2 100644 --- a/spring-context/src/main/java/org/springframework/jmx/export/notification/NotificationPublisher.java +++ b/spring-context/src/main/java/org/springframework/jmx/export/notification/NotificationPublisher.java @@ -27,7 +27,7 @@ import javax.management.Notification; * implementing the {@link NotificationPublisherAware} interface. After a particular * managed resource instance is registered with the {@link javax.management.MBeanServer}, * Spring will inject a {@code NotificationPublisher} instance into it if that - * resource implements the {@link NotificationPublisherAware} inteface. + * resource implements the {@link NotificationPublisherAware} interface. * *
Each managed resource instance will have a distinct instance of a
* {@code NotificationPublisher} implementation. This instance will keep
diff --git a/spring-context/src/main/java/org/springframework/jndi/JndiObjectLocator.java b/spring-context/src/main/java/org/springframework/jndi/JndiObjectLocator.java
index f513299a946..c609e487504 100644
--- a/spring-context/src/main/java/org/springframework/jndi/JndiObjectLocator.java
+++ b/spring-context/src/main/java/org/springframework/jndi/JndiObjectLocator.java
@@ -103,7 +103,7 @@ public abstract class JndiObjectLocator extends JndiLocatorSupport implements In
* Perform the actual JNDI lookup for this locator's target resource.
* @return the located target object
* @throws NamingException if the JNDI lookup failed or if the
- * located JNDI object is not assigable to the expected type
+ * located JNDI object is not assignable to the expected type
* @see #setJndiName
* @see #setExpectedType
* @see #lookup(String, Class)
diff --git a/spring-context/src/test/java/org/springframework/aop/aspectj/autoproxy/AtAspectJAnnotationBindingTests.java b/spring-context/src/test/java/org/springframework/aop/aspectj/autoproxy/AtAspectJAnnotationBindingTests.java
index c5f789ecf77..899278f8b5c 100644
--- a/spring-context/src/test/java/org/springframework/aop/aspectj/autoproxy/AtAspectJAnnotationBindingTests.java
+++ b/spring-context/src/test/java/org/springframework/aop/aspectj/autoproxy/AtAspectJAnnotationBindingTests.java
@@ -59,7 +59,7 @@ public class AtAspectJAnnotationBindingTests {
}
@Test
- public void testPointcutEvaulatedAgainstArray() {
+ public void testPointcutEvaluatedAgainstArray() {
ctx.getBean("arrayFactoryBean");
}
diff --git a/spring-context/src/test/java/org/springframework/aop/framework/AbstractAopProxyTests.java b/spring-context/src/test/java/org/springframework/aop/framework/AbstractAopProxyTests.java
index 3883d35cdc1..82a31a0076a 100644
--- a/spring-context/src/test/java/org/springframework/aop/framework/AbstractAopProxyTests.java
+++ b/spring-context/src/test/java/org/springframework/aop/framework/AbstractAopProxyTests.java
@@ -365,7 +365,7 @@ public abstract class AbstractAopProxyTests {
assertEquals("Only one invocation via AOP as use of this wasn't proxied", 1, di.getCount());
// 1 invocation
assertEquals("Increment happened", 1, proxied.getCount());
- proxied.incrementViaProxy(); // 2 invoocations
+ proxied.incrementViaProxy(); // 2 invocations
assertEquals("Increment happened", 2, target.getCount());
assertEquals("3 more invocations via AOP as the first call was reentrant through the proxy", 4, di.getCount());
}
@@ -511,7 +511,7 @@ public abstract class AbstractAopProxyTests {
}
@Test
- public void testUndeclaredUnheckedException() throws Throwable {
+ public void testUndeclaredUncheckedException() throws Throwable {
final RuntimeException unexpectedException = new RuntimeException();
// Test return value
MethodInterceptor mi = new MethodInterceptor() {
@@ -786,7 +786,7 @@ public abstract class AbstractAopProxyTests {
/**
* Note that an introduction can't throw an unexpected checked exception,
- * as it's constained by the interface.
+ * as it's constrained by the interface.
*/
@Test
public void testIntroductionThrowsUncheckedException() throws Throwable {
diff --git a/spring-context/src/test/java/org/springframework/aop/target/CommonsPool2TargetSourceTests.java b/spring-context/src/test/java/org/springframework/aop/target/CommonsPool2TargetSourceTests.java
index 2c032f5eb7d..874c88496aa 100644
--- a/spring-context/src/test/java/org/springframework/aop/target/CommonsPool2TargetSourceTests.java
+++ b/spring-context/src/test/java/org/springframework/aop/target/CommonsPool2TargetSourceTests.java
@@ -161,7 +161,7 @@ public class CommonsPool2TargetSourceTests {
// desired
}
- // lets now release an object and try to accquire a new one
+ // lets now release an object and try to acquire a new one
targetSource.releaseTarget(pooledInstances[9]);
pooledInstances[9] = targetSource.getTarget();
@@ -194,7 +194,7 @@ public class CommonsPool2TargetSourceTests {
// desired
}
- // lets now release an object and try to accquire a new one
+ // lets now release an object and try to acquire a new one
targetSource.releaseTarget(pooledInstances[9]);
pooledInstances[9] = targetSource.getTarget();
diff --git a/spring-context/src/test/java/org/springframework/context/LifecycleContextBean.java b/spring-context/src/test/java/org/springframework/context/LifecycleContextBean.java
index 96f39c3296a..6e847906ece 100644
--- a/spring-context/src/test/java/org/springframework/context/LifecycleContextBean.java
+++ b/spring-context/src/test/java/org/springframework/context/LifecycleContextBean.java
@@ -41,7 +41,7 @@ public class LifecycleContextBean extends LifecycleBean implements ApplicationCo
public void afterPropertiesSet() {
super.afterPropertiesSet();
if (this.owningContext == null)
- throw new RuntimeException("Factory didn't call setAppliationContext before afterPropertiesSet on lifecycle bean");
+ throw new RuntimeException("Factory didn't call setApplicationContext before afterPropertiesSet on lifecycle bean");
}
@Override
diff --git a/spring-context/src/test/java/org/springframework/context/annotation/ComponentScanAnnotationTests.java b/spring-context/src/test/java/org/springframework/context/annotation/ComponentScanAnnotationTests.java
index 2325b36f667..f78b9db9700 100644
--- a/spring-context/src/test/java/org/springframework/context/annotation/ComponentScanAnnotationTests.java
+++ b/spring-context/src/test/java/org/springframework/context/annotation/ComponentScanAnnotationTests.java
@@ -33,7 +33,7 @@ public class ComponentScanAnnotationTests {
@Test
public void noop() {
- // no-op; the @ComponentScan-annotated MyConfig class below simply excercises
+ // no-op; the @ComponentScan-annotated MyConfig class below simply exercises
// available attributes of the annotation.
}
}
diff --git a/spring-context/src/test/java/org/springframework/context/support/LiveBeansViewTests.java b/spring-context/src/test/java/org/springframework/context/support/LiveBeansViewTests.java
index a9bba5006cc..09a103c901f 100644
--- a/spring-context/src/test/java/org/springframework/context/support/LiveBeansViewTests.java
+++ b/spring-context/src/test/java/org/springframework/context/support/LiveBeansViewTests.java
@@ -64,7 +64,7 @@ public class LiveBeansViewTests {
}
@Test
- public void registerUnregisterServeralContexts() throws MalformedObjectNameException {
+ public void registerUnregisterSeveralContexts() throws MalformedObjectNameException {
this.environment.setProperty(LiveBeansView.MBEAN_DOMAIN_PROPERTY_NAME, this.name.getMethodName());
ConfigurableApplicationContext context = createApplicationContext("app");
ConfigurableApplicationContext childContext = createApplicationContext("child");
@@ -80,7 +80,7 @@ public class LiveBeansViewTests {
}
@Test
- public void registerUnregisterServeralContextsDifferentOrder() throws MalformedObjectNameException {
+ public void registerUnregisterSeveralContextsDifferentOrder() throws MalformedObjectNameException {
this.environment.setProperty(LiveBeansView.MBEAN_DOMAIN_PROPERTY_NAME, this.name.getMethodName());
ConfigurableApplicationContext context = createApplicationContext("app");
ConfigurableApplicationContext childContext = createApplicationContext("child");
diff --git a/spring-context/src/test/java/org/springframework/jmx/export/assembler/InterfaceBasedMBeanInfoAssemblerMappedTests.java b/spring-context/src/test/java/org/springframework/jmx/export/assembler/InterfaceBasedMBeanInfoAssemblerMappedTests.java
index c668c22d4c7..ca46cdd9c46 100644
--- a/spring-context/src/test/java/org/springframework/jmx/export/assembler/InterfaceBasedMBeanInfoAssemblerMappedTests.java
+++ b/spring-context/src/test/java/org/springframework/jmx/export/assembler/InterfaceBasedMBeanInfoAssemblerMappedTests.java
@@ -127,7 +127,7 @@ public class InterfaceBasedMBeanInfoAssemblerMappedTests extends AbstractJmxAsse
private void assertNickName(MBeanAttributeInfo attr) {
assertNotNull("Nick Name should not be null", attr);
assertTrue("Nick Name should be writable", attr.isWritable());
- assertTrue("Nick Name should be readab;e", attr.isReadable());
+ assertTrue("Nick Name should be readable", attr.isReadable());
}
}
diff --git a/spring-core/src/main/java/org/springframework/asm/ClassReader.java b/spring-core/src/main/java/org/springframework/asm/ClassReader.java
index 4c7e04237e4..70425fce01c 100644
--- a/spring-core/src/main/java/org/springframework/asm/ClassReader.java
+++ b/spring-core/src/main/java/org/springframework/asm/ClassReader.java
@@ -524,7 +524,7 @@ public class ClassReader {
classVisitor.visit(
readInt(cpInfoOffsets[1] - 7), accessFlags, thisClass, signature, superClass, interfaces);
- // Visit the SourceFile and SourceDebugExtenstion attributes.
+ // Visit the SourceFile and SourceDebugExtension attributes.
if ((parsingOptions & SKIP_DEBUG) == 0
&& (sourceFile != null || sourceDebugExtension != null)) {
classVisitor.visitSource(sourceFile, sourceDebugExtension);
@@ -2973,10 +2973,10 @@ public class ClassReader {
}
// Parse the method descriptor, one argument type descriptor at each iteration. Start by
// skipping the first method descriptor character, which is always '('.
- int currentMethodDescritorOffset = 1;
+ int currentMethodDescriptorOffset = 1;
while (true) {
- int currentArgumentDescriptorStartOffset = currentMethodDescritorOffset;
- switch (methodDescriptor.charAt(currentMethodDescritorOffset++)) {
+ int currentArgumentDescriptorStartOffset = currentMethodDescriptorOffset;
+ switch (methodDescriptor.charAt(currentMethodDescriptorOffset++)) {
case 'Z':
case 'C':
case 'B':
@@ -2994,26 +2994,26 @@ public class ClassReader {
locals[numLocal++] = Opcodes.DOUBLE;
break;
case '[':
- while (methodDescriptor.charAt(currentMethodDescritorOffset) == '[') {
- ++currentMethodDescritorOffset;
+ while (methodDescriptor.charAt(currentMethodDescriptorOffset) == '[') {
+ ++currentMethodDescriptorOffset;
}
- if (methodDescriptor.charAt(currentMethodDescritorOffset) == 'L') {
- ++currentMethodDescritorOffset;
- while (methodDescriptor.charAt(currentMethodDescritorOffset) != ';') {
- ++currentMethodDescritorOffset;
+ if (methodDescriptor.charAt(currentMethodDescriptorOffset) == 'L') {
+ ++currentMethodDescriptorOffset;
+ while (methodDescriptor.charAt(currentMethodDescriptorOffset) != ';') {
+ ++currentMethodDescriptorOffset;
}
}
locals[numLocal++] =
methodDescriptor.substring(
- currentArgumentDescriptorStartOffset, ++currentMethodDescritorOffset);
+ currentArgumentDescriptorStartOffset, ++currentMethodDescriptorOffset);
break;
case 'L':
- while (methodDescriptor.charAt(currentMethodDescritorOffset) != ';') {
- ++currentMethodDescritorOffset;
+ while (methodDescriptor.charAt(currentMethodDescriptorOffset) != ';') {
+ ++currentMethodDescriptorOffset;
}
locals[numLocal++] =
methodDescriptor.substring(
- currentArgumentDescriptorStartOffset + 1, currentMethodDescritorOffset++);
+ currentArgumentDescriptorStartOffset + 1, currentMethodDescriptorOffset++);
break;
default:
context.currentFrameLocalCount = numLocal;
diff --git a/spring-core/src/main/java/org/springframework/cglib/proxy/Enhancer.java b/spring-core/src/main/java/org/springframework/cglib/proxy/Enhancer.java
index 98fe3a99dbf..92053f1308e 100644
--- a/spring-core/src/main/java/org/springframework/cglib/proxy/Enhancer.java
+++ b/spring-core/src/main/java/org/springframework/cglib/proxy/Enhancer.java
@@ -335,7 +335,7 @@ public class Enhancer extends AbstractClassGenerator {
}
/**
- * Set whether methods called from within the proxy's constructer
+ * Set whether methods called from within the proxy's constructor
* will be intercepted. The default value is true. Unintercepted methods
* will call the method of the proxy's base class, if it exists.
* @param interceptDuringConstruction whether to intercept methods called from the constructor
diff --git a/spring-core/src/test/java/org/springframework/core/annotation/AnnotatedElementUtilsTests.java b/spring-core/src/test/java/org/springframework/core/annotation/AnnotatedElementUtilsTests.java
index 80d7201f305..9ec75fc32d9 100644
--- a/spring-core/src/test/java/org/springframework/core/annotation/AnnotatedElementUtilsTests.java
+++ b/spring-core/src/test/java/org/springframework/core/annotation/AnnotatedElementUtilsTests.java
@@ -262,7 +262,7 @@ public class AnnotatedElementUtilsTests {
Class> element = SubSubClassWithInheritedComposedAnnotation.class;
String name = TX_NAME;
AnnotationAttributes attributes = getMergedAnnotationAttributes(element, name);
- assertNotNull("AnnotationAttributtes for @Transactional on SubSubClassWithInheritedComposedAnnotation.", attributes);
+ assertNotNull("AnnotationAttributes for @Transactional on SubSubClassWithInheritedComposedAnnotation.", attributes);
// Verify contracts between utility methods:
assertTrue(isAnnotated(element, name));
assertFalse("readOnly flag for SubSubClassWithInheritedComposedAnnotation.", attributes.getBoolean("readOnly"));
diff --git a/spring-core/src/test/java/org/springframework/core/type/AspectJTypeFilterTests.java b/spring-core/src/test/java/org/springframework/core/type/AspectJTypeFilterTests.java
index 66b64e0e3f3..82e734da074 100644
--- a/spring-core/src/test/java/org/springframework/core/type/AspectJTypeFilterTests.java
+++ b/spring-core/src/test/java/org/springframework/core/type/AspectJTypeFilterTests.java
@@ -65,15 +65,15 @@ public class AspectJTypeFilterTests {
assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassImplementingSomeInterface",
"java.lang.Object+");
- assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplemnentingSomeInterface",
+ assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplementingSomeInterface",
"org.springframework.core.type.AspectJTypeFilterTests.SomeInterface+");
- assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplemnentingSomeInterface",
+ assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplementingSomeInterface",
"org.springframework.core.type.AspectJTypeFilterTests.SomeClassExtendingSomeClass+");
- assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplemnentingSomeInterface",
+ assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplementingSomeInterface",
"org.springframework.core.type.AspectJTypeFilterTests.SomeClass+");
- assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplemnentingSomeInterface",
+ assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplementingSomeInterface",
"*+");
- assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplemnentingSomeInterface",
+ assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplementingSomeInterface",
"java.lang.Object+");
}
@@ -100,7 +100,7 @@ public class AspectJTypeFilterTests {
}
@Test
- public void annotationPatternNoMathces() throws Exception {
+ public void annotationPatternNoMatches() throws Exception {
assertNoMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassAnnotatedWithComponent",
"@org.springframework.stereotype.Repository *..*");
}
@@ -109,11 +109,11 @@ public class AspectJTypeFilterTests {
public void compositionPatternMatches() throws Exception {
assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClass",
"!*..SomeOtherClass");
- assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplemnentingSomeInterface",
+ assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplementingSomeInterface",
"org.springframework.core.type.AspectJTypeFilterTests.SomeInterface+ " +
"&& org.springframework.core.type.AspectJTypeFilterTests.SomeClass+ " +
"&& org.springframework.core.type.AspectJTypeFilterTests.SomeClassExtendingSomeClass+");
- assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplemnentingSomeInterface",
+ assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplementingSomeInterface",
"org.springframework.core.type.AspectJTypeFilterTests.SomeInterface+ " +
"|| org.springframework.core.type.AspectJTypeFilterTests.SomeClass+ " +
"|| org.springframework.core.type.AspectJTypeFilterTests.SomeClassExtendingSomeClass+");
@@ -158,7 +158,7 @@ public class AspectJTypeFilterTests {
static class SomeClassImplementingSomeInterface implements SomeInterface {
}
- static class SomeClassExtendingSomeClassExtendingSomeClassAndImplemnentingSomeInterface
+ static class SomeClassExtendingSomeClassExtendingSomeClassAndImplementingSomeInterface
extends SomeClassExtendingSomeClass implements SomeInterface {
}
diff --git a/spring-core/src/test/java/org/springframework/util/ConcurrentReferenceHashMapTests.java b/spring-core/src/test/java/org/springframework/util/ConcurrentReferenceHashMapTests.java
index ac4dd2dee97..ab5e739cace 100644
--- a/spring-core/src/test/java/org/springframework/util/ConcurrentReferenceHashMapTests.java
+++ b/spring-core/src/test/java/org/springframework/util/ConcurrentReferenceHashMapTests.java
@@ -85,7 +85,7 @@ public class ConcurrentReferenceHashMapTests {
}
@Test
- public void shouldCreateWithInitialCapacityAndConcurrenyLevel() {
+ public void shouldCreateWithInitialCapacityAndConcurrentLevel() {
ConcurrentReferenceHashMap NOTE: In non-managed mode, a connector is not deployed on an
- * application server, or more specificially not interacting with an application
+ * application server, or more specifically not interacting with an application
* server. Consequently, it cannot use a Java EE server's system contracts:
* connection management, transaction management, and security management.
* A custom ConnectionManager implementation has to be used for applying those
diff --git a/spring-tx/src/main/java/org/springframework/transaction/jta/JtaTransactionObject.java b/spring-tx/src/main/java/org/springframework/transaction/jta/JtaTransactionObject.java
index a70814d1f17..d22f9b2a34b 100644
--- a/spring-tx/src/main/java/org/springframework/transaction/jta/JtaTransactionObject.java
+++ b/spring-tx/src/main/java/org/springframework/transaction/jta/JtaTransactionObject.java
@@ -45,7 +45,7 @@ public class JtaTransactionObject implements SmartTransactionObject {
/**
* Create a new JtaTransactionObject for the given JTA UserTransaction.
* @param userTransaction the JTA UserTransaction for the current transaction
- * (either a shared object or retrieved through a fresh per-transaction lookuip)
+ * (either a shared object or retrieved through a fresh per-transaction lookup)
*/
public JtaTransactionObject(UserTransaction userTransaction) {
this.userTransaction = userTransaction;
diff --git a/spring-tx/src/main/java/org/springframework/transaction/support/ResourceHolderSupport.java b/spring-tx/src/main/java/org/springframework/transaction/support/ResourceHolderSupport.java
index 513135b0f58..b59bcd103c5 100644
--- a/spring-tx/src/main/java/org/springframework/transaction/support/ResourceHolderSupport.java
+++ b/spring-tx/src/main/java/org/springframework/transaction/support/ResourceHolderSupport.java
@@ -133,7 +133,7 @@ public abstract class ResourceHolderSupport implements ResourceHolder {
/**
* Return the time to live for this object in milliseconds.
- * @return number of millseconds until expiration
+ * @return number of milliseconds until expiration
* @throws TransactionTimedOutException if the deadline has already been reached
*/
public long getTimeToLiveInMillis() throws TransactionTimedOutException{
diff --git a/spring-web/src/main/java/org/springframework/http/client/reactive/ReactorClientHttpConnector.java b/spring-web/src/main/java/org/springframework/http/client/reactive/ReactorClientHttpConnector.java
index 70ca7bba8a1..86d638f2940 100644
--- a/spring-web/src/main/java/org/springframework/http/client/reactive/ReactorClientHttpConnector.java
+++ b/spring-web/src/main/java/org/springframework/http/client/reactive/ReactorClientHttpConnector.java
@@ -67,7 +67,7 @@ public class ReactorClientHttpConnector implements ClientHttpConnector {
* {@link reactor.netty.http.HttpResources}, which is recommended since
* fixed, shared resources are favored for event loop concurrency. However,
* consider declaring a {@link ReactorResourceFactory} bean with
- * {@code globaResources=true} in order to ensure the Reactor Netty global
+ * {@code globalResources=true} in order to ensure the Reactor Netty global
* resources are shut down when the Spring ApplicationContext is closed.
* @param factory the resource factory to obtain the resources from
* @param mapper a mapper for further initialization of the created client
diff --git a/spring-web/src/main/java/org/springframework/http/server/reactive/AbstractListenerWriteFlushProcessor.java b/spring-web/src/main/java/org/springframework/http/server/reactive/AbstractListenerWriteFlushProcessor.java
index 0ae3115d09a..4787fd1ad5b 100644
--- a/spring-web/src/main/java/org/springframework/http/server/reactive/AbstractListenerWriteFlushProcessor.java
+++ b/spring-web/src/main/java/org/springframework/http/server/reactive/AbstractListenerWriteFlushProcessor.java
@@ -128,7 +128,7 @@ public abstract class AbstractListenerWriteFlushProcessor Sets up a ClassTemplateLoader to use for loading Spring macros.
* @see #createConfiguration
* @see #setConfiguration
diff --git a/spring-webflux/src/test/java/org/springframework/web/reactive/resource/ResourceUrlProviderTests.java b/spring-webflux/src/test/java/org/springframework/web/reactive/resource/ResourceUrlProviderTests.java
index 25c44e06dea..f7c3690cf7a 100644
--- a/spring-webflux/src/test/java/org/springframework/web/reactive/resource/ResourceUrlProviderTests.java
+++ b/spring-webflux/src/test/java/org/springframework/web/reactive/resource/ResourceUrlProviderTests.java
@@ -95,7 +95,7 @@ public class ResourceUrlProviderTests {
}
@Test
- public void getVerionedResourceUrl() {
+ public void getVersionedResourceUrl() {
VersionResourceResolver versionResolver = new VersionResourceResolver();
versionResolver.setStrategyMap(Collections.singletonMap("/**", new ContentVersionStrategy()));
List Sets up a ClassTemplateLoader to use for loading Spring macros.
* @see #createConfiguration
* @see #setConfiguration
diff --git a/spring-webmvc/src/test/java/org/springframework/context/LifecycleContextBean.java b/spring-webmvc/src/test/java/org/springframework/context/LifecycleContextBean.java
index 37d4c9715fb..be6091f1a95 100644
--- a/spring-webmvc/src/test/java/org/springframework/context/LifecycleContextBean.java
+++ b/spring-webmvc/src/test/java/org/springframework/context/LifecycleContextBean.java
@@ -26,7 +26,7 @@ public class LifecycleContextBean extends LifecycleBean implements ApplicationCo
public void afterPropertiesSet() {
super.afterPropertiesSet();
if (this.owningContext == null)
- throw new RuntimeException("Factory didn't call setAppliationContext before afterPropertiesSet on lifecycle bean");
+ throw new RuntimeException("Factory didn't call setApplicationContext before afterPropertiesSet on lifecycle bean");
}
@Override
diff --git a/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/condition/ProducesRequestConditionTests.java b/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/condition/ProducesRequestConditionTests.java
index f4d41d8f06b..d6eec382c4f 100644
--- a/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/condition/ProducesRequestConditionTests.java
+++ b/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/condition/ProducesRequestConditionTests.java
@@ -195,7 +195,7 @@ public class ProducesRequestConditionTests {
}
@Test
- public void compareToMultipleExpressionsAndMultipeAcceptHeaderValues() {
+ public void compareToMultipleExpressionsAndMultipleAcceptHeaderValues() {
ProducesRequestCondition condition1 = new ProducesRequestCondition("text/*", "text/plain");
ProducesRequestCondition condition2 = new ProducesRequestCondition("application/*", "application/xml");
diff --git a/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ReactiveTypeHandlerTests.java b/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ReactiveTypeHandlerTests.java
index 45d3b95c5ef..00209203d32 100644
--- a/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ReactiveTypeHandlerTests.java
+++ b/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ReactiveTypeHandlerTests.java
@@ -193,9 +193,9 @@ public class ReactiveTypeHandlerTests {
testSseResponse(false);
}
- private void testSseResponse(boolean expectSseEimtter) throws Exception {
+ private void testSseResponse(boolean expectSseEmitter) throws Exception {
ResponseBodyEmitter emitter = handleValue(Flux.empty(), Flux.class, forClass(String.class));
- assertEquals(expectSseEimtter, emitter instanceof SseEmitter);
+ assertEquals(expectSseEmitter, emitter instanceof SseEmitter);
resetRequest();
}
diff --git a/spring-webmvc/src/test/java/org/springframework/web/servlet/tags/BindTagTests.java b/spring-webmvc/src/test/java/org/springframework/web/servlet/tags/BindTagTests.java
index 87334a976bb..e9dcdac91b3 100644
--- a/spring-webmvc/src/test/java/org/springframework/web/servlet/tags/BindTagTests.java
+++ b/spring-webmvc/src/test/java/org/springframework/web/servlet/tags/BindTagTests.java
@@ -919,7 +919,7 @@ public class BindTagTests extends AbstractTagTests {
transform.setParent(message);
try {
transform.doStartTag();
- fail("Tag can be executed outside BindTag and inside messagtag");
+ fail("Tag can be executed outside BindTag and inside messagetag");
}
catch (JspException e) {
// this is ok!
diff --git a/spring-webmvc/src/test/java/org/springframework/web/servlet/view/BaseViewTests.java b/spring-webmvc/src/test/java/org/springframework/web/servlet/view/BaseViewTests.java
index ad10f2d3d10..c3a259bfd3d 100644
--- a/spring-webmvc/src/test/java/org/springframework/web/servlet/view/BaseViewTests.java
+++ b/spring-webmvc/src/test/java/org/springframework/web/servlet/view/BaseViewTests.java
@@ -270,7 +270,7 @@ public class BaseViewTests {
}
@Test
- public void attributeCSVParsingIgoresTrailingComma() {
+ public void attributeCSVParsingIgnoresTrailingComma() {
AbstractView v = new ConcreteView();
v.setAttributesCSV("foo=[de],");
assertEquals(1, v.getStaticAttributes().size());
diff --git a/spring-websocket/src/main/java/org/springframework/web/socket/handler/PerConnectionWebSocketHandler.java b/spring-websocket/src/main/java/org/springframework/web/socket/handler/PerConnectionWebSocketHandler.java
index 0647f92bf41..157f8b93e6a 100644
--- a/spring-websocket/src/main/java/org/springframework/web/socket/handler/PerConnectionWebSocketHandler.java
+++ b/spring-websocket/src/main/java/org/springframework/web/socket/handler/PerConnectionWebSocketHandler.java
@@ -38,7 +38,7 @@ import org.springframework.web.socket.WebSocketSession;
* API method that expects a {@link WebSocketHandler}.
*
* If initializing the target {@link WebSocketHandler} type requires a Spring
- * BeanFctory, then the {@link #setBeanFactory(BeanFactory)} property accordingly. Simply
+ * BeanFactory, then the {@link #setBeanFactory(BeanFactory)} property accordingly. Simply
* declaring this class as a Spring bean will do that. Otherwise, {@link WebSocketHandler}
* instances of the target type will be created using the default constructor.
*
diff --git a/spring-websocket/src/test/java/org/springframework/web/socket/config/MessageBrokerBeanDefinitionParserTests.java b/spring-websocket/src/test/java/org/springframework/web/socket/config/MessageBrokerBeanDefinitionParserTests.java
index ff91441b93a..7153afab892 100644
--- a/spring-websocket/src/test/java/org/springframework/web/socket/config/MessageBrokerBeanDefinitionParserTests.java
+++ b/spring-websocket/src/test/java/org/springframework/web/socket/config/MessageBrokerBeanDefinitionParserTests.java
@@ -452,7 +452,7 @@ public class MessageBrokerBeanDefinitionParserTests {
for (Class extends MessageHandler> subscriberType : subscriberTypes) {
MessageHandler subscriber = this.appContext.getBean(subscriberType);
- assertNotNull("No subsription for " + subscriberType, subscriber);
+ assertNotNull("No subscription for " + subscriberType, subscriber);
assertTrue(channel.hasSubscription(subscriber));
}
diff --git a/src/docs/asciidoc/core/core-aop-api.adoc b/src/docs/asciidoc/core/core-aop-api.adoc
index 67b0e7f0ecb..c1f75e0aae8 100644
--- a/src/docs/asciidoc/core/core-aop-api.adoc
+++ b/src/docs/asciidoc/core/core-aop-api.adoc
@@ -293,7 +293,7 @@ state. They merely act on the method and arguments.
Per-instance advice is appropriate for introductions, to support mixins. In this case,
the advice adds state to the proxied object.
-Ypou can use a mix of shared and per-instance advice in the same AOP proxy.
+You can use a mix of shared and per-instance advice in the same AOP proxy.
diff --git a/src/docs/asciidoc/core/core-resources.adoc b/src/docs/asciidoc/core/core-resources.adoc
index 372d7bd11c2..c88dd9cffd3 100644
--- a/src/docs/asciidoc/core/core-resources.adoc
+++ b/src/docs/asciidoc/core/core-resources.adoc
@@ -391,7 +391,7 @@ be configured with a simple string for that resource, as the following example s
----
====
-Note that the resource path has no prefix. Consequetly, because the application context itself is
+Note that the resource path has no prefix. Consequently, because the application context itself is
going to be used as the `ResourceLoader`, the resource itself is loaded through a
`ClassPathResource`, a `FileSystemResource`, or a `ServletContextResource`,
depending on the exact type of the context.
diff --git a/src/docs/asciidoc/data-access.adoc b/src/docs/asciidoc/data-access.adoc
index bb0e7555d5a..c26a6a3f4c0 100644
--- a/src/docs/asciidoc/data-access.adoc
+++ b/src/docs/asciidoc/data-access.adoc
@@ -582,7 +582,7 @@ transactions be created and then rolled back in response to the
----
====
-The following exampl shows an implementation of the preceding interface:
+The following example shows an implementation of the preceding interface:
====
[source,java,indent=0]
@@ -1004,7 +1004,7 @@ transactional settings:
[[transaction-declarative-txadvice-settings]]
==== public interface TextMessageContentDelegate {
diff --git a/spring-jms/src/main/java/org/springframework/jms/remoting/JmsInvokerServiceExporter.java b/spring-jms/src/main/java/org/springframework/jms/remoting/JmsInvokerServiceExporter.java
index 2e9795fbc5e..4439113531a 100644
--- a/spring-jms/src/main/java/org/springframework/jms/remoting/JmsInvokerServiceExporter.java
+++ b/spring-jms/src/main/java/org/springframework/jms/remoting/JmsInvokerServiceExporter.java
@@ -153,7 +153,7 @@ public class JmsInvokerServiceExporter extends RemoteInvocationBasedExporter
* @param session the JMS session to use
* @param result the invocation result
* @return the message response to send
- * @throws javax.jms.JMSException if creating the messsage failed
+ * @throws javax.jms.JMSException if creating the message failed
*/
protected Message createResponseMessage(Message request, Session session, RemoteInvocationResult result)
throws JMSException {
diff --git a/spring-jms/src/main/java/org/springframework/jms/support/converter/SimpleMessageConverter.java b/spring-jms/src/main/java/org/springframework/jms/support/converter/SimpleMessageConverter.java
index fae059aba3e..2e2f91b1369 100644
--- a/spring-jms/src/main/java/org/springframework/jms/support/converter/SimpleMessageConverter.java
+++ b/spring-jms/src/main/java/org/springframework/jms/support/converter/SimpleMessageConverter.java
@@ -124,7 +124,7 @@ public class SimpleMessageConverter implements MessageConverter {
/**
* Create a JMS BytesMessage for the given byte array.
- * @param bytes the byyte array to convert
+ * @param bytes the byte array to convert
* @param session current JMS session
* @return the resulting message
* @throws JMSException if thrown by JMS methods
diff --git a/spring-jms/src/main/java/org/springframework/jms/support/destination/BeanFactoryDestinationResolver.java b/spring-jms/src/main/java/org/springframework/jms/support/destination/BeanFactoryDestinationResolver.java
index a1e2b6e7622..427783f20c6 100644
--- a/spring-jms/src/main/java/org/springframework/jms/support/destination/BeanFactoryDestinationResolver.java
+++ b/spring-jms/src/main/java/org/springframework/jms/support/destination/BeanFactoryDestinationResolver.java
@@ -57,7 +57,7 @@ public class BeanFactoryDestinationResolver implements DestinationResolver, Bean
* replaced by the {@link BeanFactory} that creates it (c.f. the
* {@link BeanFactoryAware} contract). So only use this constructor if you
* are using this class outside the context of a Spring IoC container.
- * @param beanFactory the bean factory to be used to lookup {@link javax.jms.Destination Destinatiosn}
+ * @param beanFactory the bean factory to be used to lookup {@link javax.jms.Destination Destination}
*/
public BeanFactoryDestinationResolver(BeanFactory beanFactory) {
Assert.notNull(beanFactory, "BeanFactory is required");
diff --git a/spring-jms/src/test/java/org/springframework/jms/core/JmsTemplateTests.java b/spring-jms/src/test/java/org/springframework/jms/core/JmsTemplateTests.java
index 970c45c295e..fb8dc9a13b6 100644
--- a/spring-jms/src/test/java/org/springframework/jms/core/JmsTemplateTests.java
+++ b/spring-jms/src/test/java/org/springframework/jms/core/JmsTemplateTests.java
@@ -272,7 +272,7 @@ public class JmsTemplateTests {
}
/**
- * Test seding to a destination using the method
+ * Test sending to a destination using the method
* send(String d, MessageCreator messageCreator)
*/
@Test
diff --git a/spring-jms/src/test/java/org/springframework/jms/core/support/JmsGatewaySupportTests.java b/spring-jms/src/test/java/org/springframework/jms/core/support/JmsGatewaySupportTests.java
index 09675b2e4fe..d9b3206264a 100644
--- a/spring-jms/src/test/java/org/springframework/jms/core/support/JmsGatewaySupportTests.java
+++ b/spring-jms/src/test/java/org/springframework/jms/core/support/JmsGatewaySupportTests.java
@@ -46,7 +46,7 @@ public class JmsGatewaySupportTests {
gateway.afterPropertiesSet();
assertEquals("Correct ConnectionFactory", mockConnectionFactory, gateway.getConnectionFactory());
assertEquals("Correct JmsTemplate", mockConnectionFactory, gateway.getJmsTemplate().getConnectionFactory());
- assertEquals("initGatway called", 1, test.size());
+ assertEquals("initGateway called", 1, test.size());
}
@Test
diff --git a/spring-jms/src/test/java/org/springframework/jms/support/destination/JmsDestinationAccessorTests.java b/spring-jms/src/test/java/org/springframework/jms/support/destination/JmsDestinationAccessorTests.java
index dd44cf3994b..e2fcf479362 100644
--- a/spring-jms/src/test/java/org/springframework/jms/support/destination/JmsDestinationAccessorTests.java
+++ b/spring-jms/src/test/java/org/springframework/jms/support/destination/JmsDestinationAccessorTests.java
@@ -30,7 +30,7 @@ import static org.mockito.BDDMockito.*;
public class JmsDestinationAccessorTests {
@Test
- public void testChokesIfDestinationResolverIsetToNullExplcitly() throws Exception {
+ public void testChokesIfDestinationResolverIsetToNullExplicitly() throws Exception {
ConnectionFactory connectionFactory = mock(ConnectionFactory.class);
try {
diff --git a/spring-messaging/src/main/java/org/springframework/messaging/core/DestinationResolvingMessageRequestReplyOperations.java b/spring-messaging/src/main/java/org/springframework/messaging/core/DestinationResolvingMessageRequestReplyOperations.java
index 34dd6def791..b2b68029d1e 100644
--- a/spring-messaging/src/main/java/org/springframework/messaging/core/DestinationResolvingMessageRequestReplyOperations.java
+++ b/spring-messaging/src/main/java/org/springframework/messaging/core/DestinationResolvingMessageRequestReplyOperations.java
@@ -38,7 +38,7 @@ public interface DestinationResolvingMessageRequestReplyOperations