Browse Source

Fix typos

See gh-2019
pull/22710/head
Hanope 7 years ago committed by Stephane Nicoll
parent
commit
bfb49c7249
  1. 2
      spring-aop/src/main/java/org/aopalliance/intercept/MethodInvocation.java
  2. 2
      spring-aop/src/main/java/org/springframework/aop/aspectj/AbstractAspectJAdvice.java
  3. 10
      spring-aop/src/test/java/org/springframework/aop/aspectj/annotation/AbstractAspectJAdvisorFactoryTests.java
  4. 2
      spring-aop/src/test/java/org/springframework/aop/support/DelegatingIntroductionInterceptorTests.java
  5. 2
      spring-beans/src/main/java/org/springframework/beans/BeanWrapperImpl.java
  6. 2
      spring-beans/src/main/java/org/springframework/beans/factory/support/AutowireUtils.java
  7. 2
      spring-beans/src/main/java/org/springframework/beans/factory/support/BeanDefinitionBuilder.java
  8. 2
      spring-beans/src/main/java/org/springframework/beans/factory/support/BeanDefinitionResource.java
  9. 2
      spring-beans/src/test/java/org/springframework/beans/BeanWrapperTests.java
  10. 2
      spring-context-support/src/test/java/org/springframework/mail/javamail/InternetAddressEditorTests.java
  11. 2
      spring-context/src/main/java/org/springframework/context/MessageSourceAware.java
  12. 2
      spring-context/src/main/java/org/springframework/context/annotation/PropertySource.java
  13. 2
      spring-context/src/main/java/org/springframework/ejb/access/AbstractSlsbInvokerInterceptor.java
  14. 2
      spring-context/src/main/java/org/springframework/jmx/export/MBeanExportOperations.java
  15. 2
      spring-context/src/main/java/org/springframework/jmx/export/MBeanExporter.java
  16. 2
      spring-context/src/main/java/org/springframework/jmx/export/assembler/MethodNameBasedMBeanInfoAssembler.java
  17. 2
      spring-context/src/main/java/org/springframework/jmx/export/notification/NotificationPublisher.java
  18. 2
      spring-context/src/main/java/org/springframework/jndi/JndiObjectLocator.java
  19. 2
      spring-context/src/test/java/org/springframework/aop/aspectj/autoproxy/AtAspectJAnnotationBindingTests.java
  20. 6
      spring-context/src/test/java/org/springframework/aop/framework/AbstractAopProxyTests.java
  21. 4
      spring-context/src/test/java/org/springframework/aop/target/CommonsPool2TargetSourceTests.java
  22. 2
      spring-context/src/test/java/org/springframework/context/LifecycleContextBean.java
  23. 2
      spring-context/src/test/java/org/springframework/context/annotation/ComponentScanAnnotationTests.java
  24. 4
      spring-context/src/test/java/org/springframework/context/support/LiveBeansViewTests.java
  25. 2
      spring-context/src/test/java/org/springframework/jmx/export/assembler/InterfaceBasedMBeanInfoAssemblerMappedTests.java
  26. 28
      spring-core/src/main/java/org/springframework/asm/ClassReader.java
  27. 2
      spring-core/src/main/java/org/springframework/cglib/proxy/Enhancer.java
  28. 2
      spring-core/src/test/java/org/springframework/core/annotation/AnnotatedElementUtilsTests.java
  29. 18
      spring-core/src/test/java/org/springframework/core/type/AspectJTypeFilterTests.java
  30. 18
      spring-core/src/test/java/org/springframework/util/ConcurrentReferenceHashMapTests.java
  31. 2
      spring-expression/src/test/java/org/springframework/expression/spel/ExpressionStateTests.java
  32. 4
      spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/CallMetaDataContext.java
  33. 4
      spring-jdbc/src/test/java/org/springframework/jdbc/core/test/DatePerson.java
  34. 4
      spring-jdbc/src/test/java/org/springframework/jdbc/core/test/Person.java
  35. 2
      spring-jdbc/src/test/java/org/springframework/jdbc/datasource/init/ScriptUtilsIntegrationTests.java
  36. 2
      spring-jdbc/src/test/java/org/springframework/jdbc/datasource/init/ScriptUtilsUnitTests.java
  37. 2
      spring-jms/src/main/java/org/springframework/jms/listener/adapter/MessageListenerAdapter.java
  38. 2
      spring-jms/src/main/java/org/springframework/jms/remoting/JmsInvokerServiceExporter.java
  39. 2
      spring-jms/src/main/java/org/springframework/jms/support/converter/SimpleMessageConverter.java
  40. 2
      spring-jms/src/main/java/org/springframework/jms/support/destination/BeanFactoryDestinationResolver.java
  41. 2
      spring-jms/src/test/java/org/springframework/jms/core/JmsTemplateTests.java
  42. 2
      spring-jms/src/test/java/org/springframework/jms/core/support/JmsGatewaySupportTests.java
  43. 2
      spring-jms/src/test/java/org/springframework/jms/support/destination/JmsDestinationAccessorTests.java
  44. 2
      spring-messaging/src/main/java/org/springframework/messaging/core/DestinationResolvingMessageRequestReplyOperations.java
  45. 10
      spring-messaging/src/test/java/org/springframework/messaging/simp/broker/BrokerMessageHandlerTests.java
  46. 2
      spring-test/src/main/java/org/springframework/test/web/client/match/ContentRequestMatchers.java
  47. 8
      spring-test/src/test/java/org/springframework/mock/web/MockHttpServletRequestTests.java
  48. 2
      spring-test/src/test/java/org/springframework/test/annotation/ProfileValueUtilsTests.java
  49. 2
      spring-test/src/test/java/org/springframework/test/context/cache/MethodLevelDirtiesContextTests.java
  50. 2
      spring-test/src/test/java/org/springframework/test/context/support/ActiveProfilesUtilsTests.java
  51. 2
      spring-test/src/test/java/org/springframework/test/web/reactive/server/HeaderAssertionTests.java
  52. 2
      spring-tx/src/main/java/org/springframework/jca/support/LocalConnectionFactoryBean.java
  53. 2
      spring-tx/src/main/java/org/springframework/transaction/jta/JtaTransactionObject.java
  54. 2
      spring-tx/src/main/java/org/springframework/transaction/support/ResourceHolderSupport.java
  55. 2
      spring-web/src/main/java/org/springframework/http/client/reactive/ReactorClientHttpConnector.java
  56. 2
      spring-web/src/main/java/org/springframework/http/server/reactive/AbstractListenerWriteFlushProcessor.java
  57. 2
      spring-web/src/main/java/org/springframework/web/filter/ForwardedHeaderFilter.java
  58. 2
      spring-web/src/main/java/org/springframework/web/multipart/commons/CommonsFileUploadSupport.java
  59. 2
      spring-web/src/test/java/org/springframework/http/server/reactive/ServerHttpRequestTests.java
  60. 2
      spring-web/src/test/java/org/springframework/web/util/HtmlUtilsTests.java
  61. 6
      spring-webflux/src/main/java/org/springframework/web/reactive/function/BodyInserters.java
  62. 2
      spring-webflux/src/main/java/org/springframework/web/reactive/result/view/freemarker/FreeMarkerConfigurer.java
  63. 2
      spring-webflux/src/test/java/org/springframework/web/reactive/resource/ResourceUrlProviderTests.java
  64. 2
      spring-webflux/src/test/java/org/springframework/web/reactive/result/condition/ProducesRequestConditionTests.java
  65. 2
      spring-webmvc/src/main/java/org/springframework/web/servlet/view/freemarker/FreeMarkerConfigurer.java
  66. 2
      spring-webmvc/src/test/java/org/springframework/context/LifecycleContextBean.java
  67. 2
      spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/condition/ProducesRequestConditionTests.java
  68. 4
      spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ReactiveTypeHandlerTests.java
  69. 2
      spring-webmvc/src/test/java/org/springframework/web/servlet/tags/BindTagTests.java
  70. 2
      spring-webmvc/src/test/java/org/springframework/web/servlet/view/BaseViewTests.java
  71. 2
      spring-websocket/src/main/java/org/springframework/web/socket/handler/PerConnectionWebSocketHandler.java
  72. 2
      spring-websocket/src/test/java/org/springframework/web/socket/config/MessageBrokerBeanDefinitionParserTests.java
  73. 2
      src/docs/asciidoc/core/core-aop-api.adoc
  74. 2
      src/docs/asciidoc/core/core-resources.adoc
  75. 22
      src/docs/asciidoc/data-access.adoc
  76. 4
      src/docs/asciidoc/integration.adoc

2
spring-aop/src/main/java/org/aopalliance/intercept/MethodInvocation.java

@ -32,7 +32,7 @@ public interface MethodInvocation extends Invocation {
/** /**
* Get the method being called. * Get the method being called.
* <p>This method is a frienly implementation of the * <p>This method is a friendly implementation of the
* {@link Joinpoint#getStaticPart()} method (same result). * {@link Joinpoint#getStaticPart()} method (same result).
* @return the method being called * @return the method being called
*/ */

2
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 { 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(); protected static final String JOIN_POINT_KEY = JoinPoint.class.getName();

10
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") @Around(value="setAge(age)",argNames="age")
// @ArgNames({"age"}) // AMC needs more work here? ignoring pjp arg... ok?? // @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 { public void changeReturnType(ProceedingJoinPoint pjp, int age) throws Throwable {
pjp.proceed(new Object[] {age*2}); pjp.proceed(new Object[] {age*2});
} }
@ -884,12 +884,12 @@ public abstract class AbstractAspectJAdvisorFactoryTests {
@Aspect @Aspect
abstract class AbstractMakeModifiable { abstract class AbstractMakeModifiable {
public interface MutableModifable extends Modifiable { public interface MutableModifiable extends Modifiable {
void markDirty(); void markDirty();
} }
public static class ModifiableImpl implements MutableModifable { public static class ModifiableImpl implements MutableModifiable {
private boolean modified; private boolean modified;
@ -911,7 +911,7 @@ abstract class AbstractMakeModifiable {
@Before(value="execution(void set*(*)) && this(modifiable) && args(newValue)", argNames="modifiable,newValue") @Before(value="execution(void set*(*)) && this(modifiable) && args(newValue)", argNames="modifiable,newValue")
public void recordModificationIfSetterArgumentDiffersFromOldValue( 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, * 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+", @DeclareParents(value = "org.springframework.tests.sample.beans.ITestBean+",
defaultImpl=ModifiableImpl.class) defaultImpl=ModifiableImpl.class)
public static MutableModifable mixin; public static MutableModifiable mixin;
} }

2
spring-aop/src/test/java/org/springframework/aop/support/DelegatingIntroductionInterceptorTests.java

@ -157,7 +157,7 @@ public class DelegatingIntroductionInterceptorTests {
TimeStamped ts = (TimeStamped) pf.getProxy(); TimeStamped ts = (TimeStamped) pf.getProxy();
assertThat(ts, instanceOf(TimeStamped.class)); assertThat(ts, instanceOf(TimeStamped.class));
// Shoulnd't proxy framework interfaces // Shouldn't proxy framework interfaces
assertTrue(!(ts instanceof MethodInterceptor)); assertTrue(!(ts instanceof MethodInterceptor));
assertTrue(!(ts instanceof IntroductionInterceptor)); assertTrue(!(ts instanceof IntroductionInterceptor));

2
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. * for the wrapped object.
*/ */
private CachedIntrospectionResults getCachedIntrospectionResults() { private CachedIntrospectionResults getCachedIntrospectionResults() {

2
spring-beans/src/main/java/org/springframework/beans/factory/support/AutowireUtils.java

@ -158,7 +158,7 @@ abstract class AutowireUtils {
* on the given method itself. * on the given method itself.
* <p>For example, given a factory method with the following signature, if * <p>For example, given a factory method with the following signature, if
* {@code resolveReturnTypeForFactoryMethod()} is invoked with the reflected * {@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 * {@code MyService.class}, {@code resolveReturnTypeForFactoryMethod()} will
* infer that the target return type is {@code MyService}. * infer that the target return type is {@code MyService}.
* <pre class="code">{@code public static <T> T createProxy(Class<T> clazz)}</pre> * <pre class="code">{@code public static <T> T createProxy(Class<T> clazz)}</pre>

2
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) { public BeanDefinitionBuilder setDependencyCheck(int dependencyCheck) {
this.beanDefinition.setDependencyCheck(dependencyCheck); this.beanDefinition.setDependencyCheck(dependencyCheck);

2
spring-beans/src/main/java/org/springframework/beans/factory/support/BeanDefinitionResource.java

@ -39,7 +39,7 @@ class BeanDefinitionResource extends AbstractResource {
/** /**
* Create a new BeanDefinitionResource. * Create a new BeanDefinitionResource.
* @param beanDefinition the BeanDefinition objectto wrap * @param beanDefinition the BeanDefinition object to wrap
*/ */
public BeanDefinitionResource(BeanDefinition beanDefinition) { public BeanDefinitionResource(BeanDefinition beanDefinition) {
Assert.notNull(beanDefinition, "BeanDefinition must not be null"); Assert.notNull(beanDefinition, "BeanDefinition must not be null");

2
spring-beans/src/test/java/org/springframework/beans/BeanWrapperTests.java

@ -89,7 +89,7 @@ public class BeanWrapperTests extends AbstractPropertyAccessorTests {
catch (PropertyBatchUpdateException ex) { catch (PropertyBatchUpdateException ex) {
assertTrue("Must contain 2 exceptions", ex.getExceptionCount() == 2); assertTrue("Must contain 2 exceptions", ex.getExceptionCount() == 2);
// Test validly set property matches // 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("Invalid set property must retain old value", target.getAge() == 0);
assertTrue("New value of dodgy setter must be available through exception", assertTrue("New value of dodgy setter must be available through exception",
ex.getPropertyAccessException("touchy").getPropertyChangeEvent().getNewValue().equals(invalidTouchy)); ex.getPropertyAccessException("touchy").getPropertyChangeEvent().getNewValue().equals(invalidTouchy));

2
spring-context-support/src/test/java/org/springframework/mail/javamail/InternetAddressEditorTests.java

@ -58,7 +58,7 @@ public class InternetAddressEditorTests {
} }
@Test @Test
public void simpleGoodAddess() { public void simpleGoodAddress() {
editor.setAsText(SIMPLE); editor.setAsText(SIMPLE);
assertEquals("Simple email address failed", SIMPLE, editor.getAsText()); assertEquals("Simple email address failed", SIMPLE, editor.getAsText());
} }

2
spring-context/src/main/java/org/springframework/context/MessageSourceAware.java

@ -38,7 +38,7 @@ public interface MessageSourceAware extends Aware {
* <p>Invoked after population of normal bean properties but before an init * <p>Invoked after population of normal bean properties but before an init
* callback like InitializingBean's afterPropertiesSet or a custom init-method. * callback like InitializingBean's afterPropertiesSet or a custom init-method.
* Invoked before ApplicationContextAware's setApplicationContext. * 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); void setMessageSource(MessageSource messageSource);

2
spring-context/src/main/java/org/springframework/context/annotation/PropertySource.java

@ -138,7 +138,7 @@ import org.springframework.core.io.support.PropertySourceFactory;
* last. * last.
* *
* <p>In certain situations, it may not be possible or practical to tightly control * <p>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, * 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 - * 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. * it is recommended that the user fall back to using the programmatic PropertySource API.

2
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}. * {@link #invokeInContext}.
*/ */
@Override @Override

2
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. * accessed by application developers during application runtime.
* *
* <p>This interface should be used to export application resources to JMX using Spring's * <p>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. * generation capabilities.
* *
* @author Rob Harrop * @author Rob Harrop

2
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}. * Register the defined beans with the {@link MBeanServer}.
* <p>Each bean is exposed to the {@code MBeanServer} via a * <p>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 * {@code ModelMBean} interface used depends on the implementation of
* the {@code ModelMBeanProvider} interface that is configured. By * the {@code ModelMBeanProvider} interface that is configured. By
* default the {@code RequiredModelMBean} class that is supplied with * default the {@code RequiredModelMBean} class that is supplied with

2
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 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 * the list of method names. When searching for method names for a bean, Spring
* will check these mappings first. * 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) { public void setMethodMappings(Properties mappings) {
this.methodMappings = new HashMap<>(); this.methodMappings = new HashMap<>();

2
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 * implementing the {@link NotificationPublisherAware} interface. After a particular
* managed resource instance is registered with the {@link javax.management.MBeanServer}, * managed resource instance is registered with the {@link javax.management.MBeanServer},
* Spring will inject a {@code NotificationPublisher} instance into it if that * Spring will inject a {@code NotificationPublisher} instance into it if that
* resource implements the {@link NotificationPublisherAware} inteface. * resource implements the {@link NotificationPublisherAware} interface.
* *
* <p>Each managed resource instance will have a distinct instance of a * <p>Each managed resource instance will have a distinct instance of a
* {@code NotificationPublisher} implementation. This instance will keep * {@code NotificationPublisher} implementation. This instance will keep

2
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. * Perform the actual JNDI lookup for this locator's target resource.
* @return the located target object * @return the located target object
* @throws NamingException if the JNDI lookup failed or if the * @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 #setJndiName
* @see #setExpectedType * @see #setExpectedType
* @see #lookup(String, Class) * @see #lookup(String, Class)

2
spring-context/src/test/java/org/springframework/aop/aspectj/autoproxy/AtAspectJAnnotationBindingTests.java

@ -59,7 +59,7 @@ public class AtAspectJAnnotationBindingTests {
} }
@Test @Test
public void testPointcutEvaulatedAgainstArray() { public void testPointcutEvaluatedAgainstArray() {
ctx.getBean("arrayFactoryBean"); ctx.getBean("arrayFactoryBean");
} }

6
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()); assertEquals("Only one invocation via AOP as use of this wasn't proxied", 1, di.getCount());
// 1 invocation // 1 invocation
assertEquals("Increment happened", 1, proxied.getCount()); assertEquals("Increment happened", 1, proxied.getCount());
proxied.incrementViaProxy(); // 2 invoocations proxied.incrementViaProxy(); // 2 invocations
assertEquals("Increment happened", 2, target.getCount()); assertEquals("Increment happened", 2, target.getCount());
assertEquals("3 more invocations via AOP as the first call was reentrant through the proxy", 4, di.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 @Test
public void testUndeclaredUnheckedException() throws Throwable { public void testUndeclaredUncheckedException() throws Throwable {
final RuntimeException unexpectedException = new RuntimeException(); final RuntimeException unexpectedException = new RuntimeException();
// Test return value // Test return value
MethodInterceptor mi = new MethodInterceptor() { MethodInterceptor mi = new MethodInterceptor() {
@ -786,7 +786,7 @@ public abstract class AbstractAopProxyTests {
/** /**
* Note that an introduction can't throw an unexpected checked exception, * 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 @Test
public void testIntroductionThrowsUncheckedException() throws Throwable { public void testIntroductionThrowsUncheckedException() throws Throwable {

4
spring-context/src/test/java/org/springframework/aop/target/CommonsPool2TargetSourceTests.java

@ -161,7 +161,7 @@ public class CommonsPool2TargetSourceTests {
// desired // 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]); targetSource.releaseTarget(pooledInstances[9]);
pooledInstances[9] = targetSource.getTarget(); pooledInstances[9] = targetSource.getTarget();
@ -194,7 +194,7 @@ public class CommonsPool2TargetSourceTests {
// desired // 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]); targetSource.releaseTarget(pooledInstances[9]);
pooledInstances[9] = targetSource.getTarget(); pooledInstances[9] = targetSource.getTarget();

2
spring-context/src/test/java/org/springframework/context/LifecycleContextBean.java

@ -41,7 +41,7 @@ public class LifecycleContextBean extends LifecycleBean implements ApplicationCo
public void afterPropertiesSet() { public void afterPropertiesSet() {
super.afterPropertiesSet(); super.afterPropertiesSet();
if (this.owningContext == null) 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 @Override

2
spring-context/src/test/java/org/springframework/context/annotation/ComponentScanAnnotationTests.java

@ -33,7 +33,7 @@ public class ComponentScanAnnotationTests {
@Test @Test
public void noop() { 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. // available attributes of the annotation.
} }
} }

4
spring-context/src/test/java/org/springframework/context/support/LiveBeansViewTests.java

@ -64,7 +64,7 @@ public class LiveBeansViewTests {
} }
@Test @Test
public void registerUnregisterServeralContexts() throws MalformedObjectNameException { public void registerUnregisterSeveralContexts() throws MalformedObjectNameException {
this.environment.setProperty(LiveBeansView.MBEAN_DOMAIN_PROPERTY_NAME, this.name.getMethodName()); this.environment.setProperty(LiveBeansView.MBEAN_DOMAIN_PROPERTY_NAME, this.name.getMethodName());
ConfigurableApplicationContext context = createApplicationContext("app"); ConfigurableApplicationContext context = createApplicationContext("app");
ConfigurableApplicationContext childContext = createApplicationContext("child"); ConfigurableApplicationContext childContext = createApplicationContext("child");
@ -80,7 +80,7 @@ public class LiveBeansViewTests {
} }
@Test @Test
public void registerUnregisterServeralContextsDifferentOrder() throws MalformedObjectNameException { public void registerUnregisterSeveralContextsDifferentOrder() throws MalformedObjectNameException {
this.environment.setProperty(LiveBeansView.MBEAN_DOMAIN_PROPERTY_NAME, this.name.getMethodName()); this.environment.setProperty(LiveBeansView.MBEAN_DOMAIN_PROPERTY_NAME, this.name.getMethodName());
ConfigurableApplicationContext context = createApplicationContext("app"); ConfigurableApplicationContext context = createApplicationContext("app");
ConfigurableApplicationContext childContext = createApplicationContext("child"); ConfigurableApplicationContext childContext = createApplicationContext("child");

2
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) { private void assertNickName(MBeanAttributeInfo attr) {
assertNotNull("Nick Name should not be null", attr); assertNotNull("Nick Name should not be null", attr);
assertTrue("Nick Name should be writable", attr.isWritable()); 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());
} }
} }

28
spring-core/src/main/java/org/springframework/asm/ClassReader.java

@ -524,7 +524,7 @@ public class ClassReader {
classVisitor.visit( classVisitor.visit(
readInt(cpInfoOffsets[1] - 7), accessFlags, thisClass, signature, superClass, interfaces); 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 if ((parsingOptions & SKIP_DEBUG) == 0
&& (sourceFile != null || sourceDebugExtension != null)) { && (sourceFile != null || sourceDebugExtension != null)) {
classVisitor.visitSource(sourceFile, sourceDebugExtension); classVisitor.visitSource(sourceFile, sourceDebugExtension);
@ -2973,10 +2973,10 @@ public class ClassReader {
} }
// Parse the method descriptor, one argument type descriptor at each iteration. Start by // Parse the method descriptor, one argument type descriptor at each iteration. Start by
// skipping the first method descriptor character, which is always '('. // skipping the first method descriptor character, which is always '('.
int currentMethodDescritorOffset = 1; int currentMethodDescriptorOffset = 1;
while (true) { while (true) {
int currentArgumentDescriptorStartOffset = currentMethodDescritorOffset; int currentArgumentDescriptorStartOffset = currentMethodDescriptorOffset;
switch (methodDescriptor.charAt(currentMethodDescritorOffset++)) { switch (methodDescriptor.charAt(currentMethodDescriptorOffset++)) {
case 'Z': case 'Z':
case 'C': case 'C':
case 'B': case 'B':
@ -2994,26 +2994,26 @@ public class ClassReader {
locals[numLocal++] = Opcodes.DOUBLE; locals[numLocal++] = Opcodes.DOUBLE;
break; break;
case '[': case '[':
while (methodDescriptor.charAt(currentMethodDescritorOffset) == '[') { while (methodDescriptor.charAt(currentMethodDescriptorOffset) == '[') {
++currentMethodDescritorOffset; ++currentMethodDescriptorOffset;
} }
if (methodDescriptor.charAt(currentMethodDescritorOffset) == 'L') { if (methodDescriptor.charAt(currentMethodDescriptorOffset) == 'L') {
++currentMethodDescritorOffset; ++currentMethodDescriptorOffset;
while (methodDescriptor.charAt(currentMethodDescritorOffset) != ';') { while (methodDescriptor.charAt(currentMethodDescriptorOffset) != ';') {
++currentMethodDescritorOffset; ++currentMethodDescriptorOffset;
} }
} }
locals[numLocal++] = locals[numLocal++] =
methodDescriptor.substring( methodDescriptor.substring(
currentArgumentDescriptorStartOffset, ++currentMethodDescritorOffset); currentArgumentDescriptorStartOffset, ++currentMethodDescriptorOffset);
break; break;
case 'L': case 'L':
while (methodDescriptor.charAt(currentMethodDescritorOffset) != ';') { while (methodDescriptor.charAt(currentMethodDescriptorOffset) != ';') {
++currentMethodDescritorOffset; ++currentMethodDescriptorOffset;
} }
locals[numLocal++] = locals[numLocal++] =
methodDescriptor.substring( methodDescriptor.substring(
currentArgumentDescriptorStartOffset + 1, currentMethodDescritorOffset++); currentArgumentDescriptorStartOffset + 1, currentMethodDescriptorOffset++);
break; break;
default: default:
context.currentFrameLocalCount = numLocal; context.currentFrameLocalCount = numLocal;

2
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 be intercepted. The default value is true. Unintercepted methods
* will call the method of the proxy's base class, if it exists. * will call the method of the proxy's base class, if it exists.
* @param interceptDuringConstruction whether to intercept methods called from the constructor * @param interceptDuringConstruction whether to intercept methods called from the constructor

2
spring-core/src/test/java/org/springframework/core/annotation/AnnotatedElementUtilsTests.java

@ -262,7 +262,7 @@ public class AnnotatedElementUtilsTests {
Class<?> element = SubSubClassWithInheritedComposedAnnotation.class; Class<?> element = SubSubClassWithInheritedComposedAnnotation.class;
String name = TX_NAME; String name = TX_NAME;
AnnotationAttributes attributes = getMergedAnnotationAttributes(element, 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: // Verify contracts between utility methods:
assertTrue(isAnnotated(element, name)); assertTrue(isAnnotated(element, name));
assertFalse("readOnly flag for SubSubClassWithInheritedComposedAnnotation.", attributes.getBoolean("readOnly")); assertFalse("readOnly flag for SubSubClassWithInheritedComposedAnnotation.", attributes.getBoolean("readOnly"));

18
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", assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassImplementingSomeInterface",
"java.lang.Object+"); "java.lang.Object+");
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.SomeInterface+");
assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplemnentingSomeInterface", assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplementingSomeInterface",
"org.springframework.core.type.AspectJTypeFilterTests.SomeClassExtendingSomeClass+"); "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+"); "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+"); "java.lang.Object+");
} }
@ -100,7 +100,7 @@ public class AspectJTypeFilterTests {
} }
@Test @Test
public void annotationPatternNoMathces() throws Exception { public void annotationPatternNoMatches() throws Exception {
assertNoMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassAnnotatedWithComponent", assertNoMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassAnnotatedWithComponent",
"@org.springframework.stereotype.Repository *..*"); "@org.springframework.stereotype.Repository *..*");
} }
@ -109,11 +109,11 @@ public class AspectJTypeFilterTests {
public void compositionPatternMatches() throws Exception { public void compositionPatternMatches() throws Exception {
assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClass", assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClass",
"!*..SomeOtherClass"); "!*..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.SomeInterface+ " +
"&& org.springframework.core.type.AspectJTypeFilterTests.SomeClass+ " + "&& org.springframework.core.type.AspectJTypeFilterTests.SomeClass+ " +
"&& org.springframework.core.type.AspectJTypeFilterTests.SomeClassExtendingSomeClass+"); "&& 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.SomeInterface+ " +
"|| org.springframework.core.type.AspectJTypeFilterTests.SomeClass+ " + "|| org.springframework.core.type.AspectJTypeFilterTests.SomeClass+ " +
"|| org.springframework.core.type.AspectJTypeFilterTests.SomeClassExtendingSomeClass+"); "|| org.springframework.core.type.AspectJTypeFilterTests.SomeClassExtendingSomeClass+");
@ -158,7 +158,7 @@ public class AspectJTypeFilterTests {
static class SomeClassImplementingSomeInterface implements SomeInterface { static class SomeClassImplementingSomeInterface implements SomeInterface {
} }
static class SomeClassExtendingSomeClassExtendingSomeClassAndImplemnentingSomeInterface static class SomeClassExtendingSomeClassExtendingSomeClassAndImplementingSomeInterface
extends SomeClassExtendingSomeClass implements SomeInterface { extends SomeClassExtendingSomeClass implements SomeInterface {
} }

18
spring-core/src/test/java/org/springframework/util/ConcurrentReferenceHashMapTests.java

@ -85,7 +85,7 @@ public class ConcurrentReferenceHashMapTests {
} }
@Test @Test
public void shouldCreateWithInitialCapacityAndConcurrenyLevel() { public void shouldCreateWithInitialCapacityAndConcurrentLevel() {
ConcurrentReferenceHashMap<Integer, String> map = new ConcurrentReferenceHashMap<>(16, 2); ConcurrentReferenceHashMap<Integer, String> map = new ConcurrentReferenceHashMap<>(16, 2);
assertThat(map.getSegmentsSize(), is(2)); assertThat(map.getSegmentsSize(), is(2));
assertThat(map.getSegment(0).getSize(), is(8)); assertThat(map.getSegment(0).getSize(), is(8));
@ -173,11 +173,11 @@ public class ConcurrentReferenceHashMapTests {
} }
@Test @Test
public void shouldApplySupplimentalHash() { public void shouldApplySupplementalHash() {
Integer key = 123; Integer key = 123;
this.map.put(key, "123"); this.map.put(key, "123");
assertThat(this.map.getSupplimentalHash(), is(not(key.hashCode()))); assertThat(this.map.getSupplementalHash(), is(not(key.hashCode())));
assertThat(this.map.getSupplimentalHash() >> 30 & 0xFF, is(not(0))); assertThat(this.map.getSupplementalHash() >> 30 & 0xFF, is(not(0)));
} }
@Test @Test
@ -240,7 +240,7 @@ public class ConcurrentReferenceHashMapTests {
} }
@Test @Test
public void shouldPergeOnPut() { public void shouldPurgeOnPut() {
this.map = new TestWeakConcurrentCache<>(1, 0.75f, 1); this.map = new TestWeakConcurrentCache<>(1, 0.75f, 1);
for (int i = 1; i <= 5; i++) { for (int i = 1; i <= 5; i++) {
this.map.put(i, String.valueOf(i)); this.map.put(i, String.valueOf(i));
@ -559,7 +559,7 @@ public class ConcurrentReferenceHashMapTests {
private static class TestWeakConcurrentCache<K, V> extends ConcurrentReferenceHashMap<K, V> { private static class TestWeakConcurrentCache<K, V> extends ConcurrentReferenceHashMap<K, V> {
private int supplimentalHash; private int supplementalHash;
private final LinkedList<MockReference<K, V>> queue = new LinkedList<>(); private final LinkedList<MockReference<K, V>> queue = new LinkedList<>();
@ -587,12 +587,12 @@ public class ConcurrentReferenceHashMapTests {
return super.getHash(o); return super.getHash(o);
} }
// For testing we want more control of the hash // For testing we want more control of the hash
this.supplimentalHash = super.getHash(o); this.supplementalHash = super.getHash(o);
return o == null ? 0 : o.hashCode(); return o == null ? 0 : o.hashCode();
} }
public int getSupplimentalHash() { public int getSupplementalHash() {
return this.supplimentalHash; return this.supplementalHash;
} }
@Override @Override

2
spring-expression/src/test/java/org/springframework/expression/spel/ExpressionStateTests.java

@ -83,7 +83,7 @@ public class ExpressionStateTests extends AbstractExpressionTests {
} }
@Test @Test
public void testNoVariableInteference() { public void testNoVariableInterference() {
ExpressionState state = getState(); ExpressionState state = getState();
TypedValue typedValue = state.lookupVariable("foo"); TypedValue typedValue = state.lookupVariable("foo");
assertEquals(TypedValue.NULL, typedValue); assertEquals(TypedValue.NULL, typedValue);

4
spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/CallMetaDataContext.java

@ -172,7 +172,7 @@ public class CallMetaDataContext {
} }
/** /**
* Secify the name of the schema. * Specify the name of the schema.
*/ */
public void setSchemaName(@Nullable String schemaName) { public void setSchemaName(@Nullable String schemaName) {
this.schemaName = schemaName; this.schemaName = schemaName;
@ -625,7 +625,7 @@ public class CallMetaDataContext {
String schemaNameToUse; String schemaNameToUse;
// For Oracle where catalogs are not supported we need to reverse the schema name // For Oracle where catalogs are not supported we need to reverse the schema name
// and the catalog name since the cataog is used for the package name // and the catalog name since the catalog is used for the package name
if (this.metaDataProvider.isSupportsSchemasInProcedureCalls() && if (this.metaDataProvider.isSupportsSchemasInProcedureCalls() &&
!this.metaDataProvider.isSupportsCatalogsInProcedureCalls()) { !this.metaDataProvider.isSupportsCatalogsInProcedureCalls()) {
schemaNameToUse = this.metaDataProvider.catalogNameToUse(getCatalogName()); schemaNameToUse = this.metaDataProvider.catalogNameToUse(getCatalogName());

4
spring-jdbc/src/test/java/org/springframework/jdbc/core/test/DatePerson.java

@ -60,8 +60,8 @@ public class DatePerson {
return balance; return balance;
} }
public void setBalance(BigDecimal balanace) { public void setBalance(BigDecimal balance) {
this.balance = balanace; this.balance = balance;
} }
} }

4
spring-jdbc/src/test/java/org/springframework/jdbc/core/test/Person.java

@ -60,8 +60,8 @@ public class Person {
return balance; return balance;
} }
public void setBalance(BigDecimal balanace) { public void setBalance(BigDecimal balance) {
this.balance = balanace; this.balance = balance;
} }
} }

2
spring-jdbc/src/test/java/org/springframework/jdbc/datasource/init/ScriptUtilsIntegrationTests.java

@ -44,7 +44,7 @@ public class ScriptUtilsIntegrationTests extends AbstractDatabaseInitializationT
} }
@Test @Test
public void executeSqlScriptContainingMuliLineComments() throws SQLException { public void executeSqlScriptContainingMultiLineComments() throws SQLException {
executeSqlScript(db.getConnection(), resource("test-data-with-multi-line-comments.sql")); executeSqlScript(db.getConnection(), resource("test-data-with-multi-line-comments.sql"));
assertUsersDatabaseCreated("Hoeller", "Brannen"); assertUsersDatabaseCreated("Hoeller", "Brannen");
} }

2
spring-jdbc/src/test/java/org/springframework/jdbc/datasource/init/ScriptUtilsUnitTests.java

@ -149,7 +149,7 @@ public class ScriptUtilsUnitTests {
} }
@Test // SPR-9531 @Test // SPR-9531
public void readAndSplitScriptContainingMuliLineComments() throws Exception { public void readAndSplitScriptContainingMultiLineComments() throws Exception {
String script = readScript("test-data-with-multi-line-comments.sql"); String script = readScript("test-data-with-multi-line-comments.sql");
List<String> statements = new ArrayList<>(); List<String> statements = new ArrayList<>();
splitSqlScript(script, ';', statements); splitSqlScript(script, ';', statements);

2
spring-jms/src/main/java/org/springframework/jms/listener/adapter/MessageListenerAdapter.java

@ -88,7 +88,7 @@ import org.springframework.util.ObjectUtils;
* {@link javax.jms.TextMessage TextMessages}. Notice also how the * {@link javax.jms.TextMessage TextMessages}. Notice also how the
* name of the {@code Message} handling method is different from the * name of the {@code Message} handling method is different from the
* {@link #ORIGINAL_DEFAULT_LISTENER_METHOD original} (this will have to * {@link #ORIGINAL_DEFAULT_LISTENER_METHOD original} (this will have to
* be configured in the attandant bean definition). Again, no {@code Message} * be configured in the attendant bean definition). Again, no {@code Message}
* will be sent back as the method returns {@code void}. * will be sent back as the method returns {@code void}.
* *
* <pre class="code">public interface TextMessageContentDelegate { * <pre class="code">public interface TextMessageContentDelegate {

2
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 session the JMS session to use
* @param result the invocation result * @param result the invocation result
* @return the message response to send * @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) protected Message createResponseMessage(Message request, Session session, RemoteInvocationResult result)
throws JMSException { throws JMSException {

2
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. * 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 * @param session current JMS session
* @return the resulting message * @return the resulting message
* @throws JMSException if thrown by JMS methods * @throws JMSException if thrown by JMS methods

2
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 * replaced by the {@link BeanFactory} that creates it (c.f. the
* {@link BeanFactoryAware} contract). So only use this constructor if you * {@link BeanFactoryAware} contract). So only use this constructor if you
* are using this class outside the context of a Spring IoC container. * 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) { public BeanFactoryDestinationResolver(BeanFactory beanFactory) {
Assert.notNull(beanFactory, "BeanFactory is required"); Assert.notNull(beanFactory, "BeanFactory is required");

2
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) * send(String d, MessageCreator messageCreator)
*/ */
@Test @Test

2
spring-jms/src/test/java/org/springframework/jms/core/support/JmsGatewaySupportTests.java

@ -46,7 +46,7 @@ public class JmsGatewaySupportTests {
gateway.afterPropertiesSet(); gateway.afterPropertiesSet();
assertEquals("Correct ConnectionFactory", mockConnectionFactory, gateway.getConnectionFactory()); assertEquals("Correct ConnectionFactory", mockConnectionFactory, gateway.getConnectionFactory());
assertEquals("Correct JmsTemplate", mockConnectionFactory, gateway.getJmsTemplate().getConnectionFactory()); assertEquals("Correct JmsTemplate", mockConnectionFactory, gateway.getJmsTemplate().getConnectionFactory());
assertEquals("initGatway called", 1, test.size()); assertEquals("initGateway called", 1, test.size());
} }
@Test @Test

2
spring-jms/src/test/java/org/springframework/jms/support/destination/JmsDestinationAccessorTests.java

@ -30,7 +30,7 @@ import static org.mockito.BDDMockito.*;
public class JmsDestinationAccessorTests { public class JmsDestinationAccessorTests {
@Test @Test
public void testChokesIfDestinationResolverIsetToNullExplcitly() throws Exception { public void testChokesIfDestinationResolverIsetToNullExplicitly() throws Exception {
ConnectionFactory connectionFactory = mock(ConnectionFactory.class); ConnectionFactory connectionFactory = mock(ConnectionFactory.class);
try { try {

2
spring-messaging/src/main/java/org/springframework/messaging/core/DestinationResolvingMessageRequestReplyOperations.java

@ -38,7 +38,7 @@ public interface DestinationResolvingMessageRequestReplyOperations<D> extends Me
* Resolve the given destination name to a destination and send the given message, * Resolve the given destination name to a destination and send the given message,
* receive a reply and return it. * receive a reply and return it.
* @param destinationName the name of the target destination * @param destinationName the name of the target destination
* @param requestMessage the mesage to send * @param requestMessage the message to send
* @return the received message, possibly {@code null} if the message could not * @return the received message, possibly {@code null} if the message could not
* be received, for example due to a timeout * be received, for example due to a timeout
*/ */

10
spring-messaging/src/test/java/org/springframework/messaging/simp/broker/BrokerMessageHandlerTests.java

@ -42,13 +42,13 @@ import static org.mockito.Mockito.*;
*/ */
public class BrokerMessageHandlerTests { public class BrokerMessageHandlerTests {
private TestBrokerMesageHandler handler; private TestBrokerMessageHandler handler;
@Before @Before
public void setup() { public void setup() {
MockitoAnnotations.initMocks(this); MockitoAnnotations.initMocks(this);
this.handler = new TestBrokerMesageHandler(); this.handler = new TestBrokerMessageHandler();
} }
@ -116,7 +116,7 @@ public class BrokerMessageHandlerTests {
} }
@Test @Test
public void publishBrokerUnavailableEventWhenAlreadyUnvailable() { public void publishBrokerUnavailableEventWhenAlreadyUnavailable() {
this.handler.publishBrokerAvailableEvent(); this.handler.publishBrokerAvailableEvent();
this.handler.publishBrokerUnavailableEvent(); this.handler.publishBrokerUnavailableEvent();
@ -126,7 +126,7 @@ public class BrokerMessageHandlerTests {
} }
private static class TestBrokerMesageHandler extends AbstractBrokerMessageHandler private static class TestBrokerMessageHandler extends AbstractBrokerMessageHandler
implements ApplicationEventPublisher { implements ApplicationEventPublisher {
private final List<Message<?>> messages = new ArrayList<>(); private final List<Message<?>> messages = new ArrayList<>();
@ -134,7 +134,7 @@ public class BrokerMessageHandlerTests {
private final List<Boolean> availabilityEvents = new ArrayList<>(); private final List<Boolean> availabilityEvents = new ArrayList<>();
private TestBrokerMesageHandler() { private TestBrokerMessageHandler() {
super(mock(SubscribableChannel.class), mock(MessageChannel.class), mock(SubscribableChannel.class)); super(mock(SubscribableChannel.class), mock(MessageChannel.class), mock(SubscribableChannel.class));
setApplicationEventPublisher(this); setApplicationEventPublisher(this);
} }

2
spring-test/src/main/java/org/springframework/test/web/client/match/ContentRequestMatchers.java

@ -106,7 +106,7 @@ public class ContentRequestMatchers {
} }
/** /**
* Get the body of the request as a UTF-8 string and appply the given {@link Matcher}. * Get the body of the request as a UTF-8 string and apply the given {@link Matcher}.
*/ */
public RequestMatcher string(final Matcher<? super String> matcher) { public RequestMatcher string(final Matcher<? super String> matcher) {
return request -> { return request -> {

8
spring-test/src/test/java/org/springframework/mock/web/MockHttpServletRequestTests.java

@ -533,25 +533,25 @@ public class MockHttpServletRequestTests {
} }
@Test @Test
public void httpHeaderRfcFormatedDate() { public void httpHeaderRfcFormattedDate() {
request.addHeader(HttpHeaders.IF_MODIFIED_SINCE, "Tue, 21 Jul 2015 10:00:00 GMT"); request.addHeader(HttpHeaders.IF_MODIFIED_SINCE, "Tue, 21 Jul 2015 10:00:00 GMT");
assertEquals(1437472800000L, request.getDateHeader(HttpHeaders.IF_MODIFIED_SINCE)); assertEquals(1437472800000L, request.getDateHeader(HttpHeaders.IF_MODIFIED_SINCE));
} }
@Test @Test
public void httpHeaderFirstVariantFormatedDate() { public void httpHeaderFirstVariantFormattedDate() {
request.addHeader(HttpHeaders.IF_MODIFIED_SINCE, "Tue, 21-Jul-15 10:00:00 GMT"); request.addHeader(HttpHeaders.IF_MODIFIED_SINCE, "Tue, 21-Jul-15 10:00:00 GMT");
assertEquals(1437472800000L, request.getDateHeader(HttpHeaders.IF_MODIFIED_SINCE)); assertEquals(1437472800000L, request.getDateHeader(HttpHeaders.IF_MODIFIED_SINCE));
} }
@Test @Test
public void httpHeaderSecondVariantFormatedDate() { public void httpHeaderSecondVariantFormattedDate() {
request.addHeader(HttpHeaders.IF_MODIFIED_SINCE, "Tue Jul 21 10:00:00 2015"); request.addHeader(HttpHeaders.IF_MODIFIED_SINCE, "Tue Jul 21 10:00:00 2015");
assertEquals(1437472800000L, request.getDateHeader(HttpHeaders.IF_MODIFIED_SINCE)); assertEquals(1437472800000L, request.getDateHeader(HttpHeaders.IF_MODIFIED_SINCE));
} }
@Test(expected = IllegalArgumentException.class) @Test(expected = IllegalArgumentException.class)
public void httpHeaderFormatedDateError() { public void httpHeaderFormattedDateError() {
request.addHeader(HttpHeaders.IF_MODIFIED_SINCE, "This is not a date"); request.addHeader(HttpHeaders.IF_MODIFIED_SINCE, "This is not a date");
request.getDateHeader(HttpHeaders.IF_MODIFIED_SINCE); request.getDateHeader(HttpHeaders.IF_MODIFIED_SINCE);
} }

2
spring-test/src/test/java/org/springframework/test/annotation/ProfileValueUtilsTests.java

@ -52,7 +52,7 @@ public class ProfileValueUtilsTests {
} }
private void assertClassIsDisabled(Class<?> testClass) throws Exception { private void assertClassIsDisabled(Class<?> testClass) throws Exception {
assertFalse("Test class [" + testClass + "] should be disbled.", assertFalse("Test class [" + testClass + "] should be disabled.",
ProfileValueUtils.isTestEnabledInThisEnvironment(testClass)); ProfileValueUtils.isTestEnabledInThisEnvironment(testClass));
} }

2
spring-test/src/test/java/org/springframework/test/context/cache/MethodLevelDirtiesContextTests.java vendored

@ -88,7 +88,7 @@ public class MethodLevelDirtiesContextTests {
@Test @Test
@DirtiesContext @DirtiesContext
// test## prefix required for @FixMethodOrder. // test## prefix required for @FixMethodOrder.
public void test03_dirtyContextAferTestMethod() throws Exception { public void test03_dirtyContextAfterTestMethod() throws Exception {
performAssertions(2); performAssertions(2);
} }

2
spring-test/src/test/java/org/springframework/test/context/support/ActiveProfilesUtilsTests.java

@ -355,7 +355,7 @@ public class ActiveProfilesUtilsTests extends AbstractContextConfigurationUtilsT
private static class NoDefaultConstructorActiveProfilesResolver implements ActiveProfilesResolver { private static class NoDefaultConstructorActiveProfilesResolver implements ActiveProfilesResolver {
@SuppressWarnings("unused") @SuppressWarnings("unused")
NoDefaultConstructorActiveProfilesResolver(Object agument) { NoDefaultConstructorActiveProfilesResolver(Object argument) {
} }
@Override @Override

2
spring-test/src/test/java/org/springframework/test/web/reactive/server/HeaderAssertionTests.java

@ -79,7 +79,7 @@ public class HeaderAssertionTests {
} }
@Test @Test
public void valueEqualsWithMultipeValues() { public void valueEqualsWithMultipleValues() {
HttpHeaders headers = new HttpHeaders(); HttpHeaders headers = new HttpHeaders();
headers.add("foo", "bar"); headers.add("foo", "bar");
headers.add("foo", "baz"); headers.add("foo", "baz");

2
spring-tx/src/main/java/org/springframework/jca/support/LocalConnectionFactoryBean.java

@ -45,7 +45,7 @@ import org.springframework.lang.Nullable;
* in order to use a custom ConnectionManager instead of the connector's default. * in order to use a custom ConnectionManager instead of the connector's default.
* *
* <p><b>NOTE:</b> In non-managed mode, a connector is not deployed on an * <p><b>NOTE:</b> 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: * server. Consequently, it cannot use a Java EE server's system contracts:
* connection management, transaction management, and security management. * connection management, transaction management, and security management.
* A custom ConnectionManager implementation has to be used for applying those * A custom ConnectionManager implementation has to be used for applying those

2
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. * Create a new JtaTransactionObject for the given JTA UserTransaction.
* @param userTransaction the JTA UserTransaction for the current transaction * @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) { public JtaTransactionObject(UserTransaction userTransaction) {
this.userTransaction = userTransaction; this.userTransaction = userTransaction;

2
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 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 * @throws TransactionTimedOutException if the deadline has already been reached
*/ */
public long getTimeToLiveInMillis() throws TransactionTimedOutException{ public long getTimeToLiveInMillis() throws TransactionTimedOutException{

2
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 * {@link reactor.netty.http.HttpResources}, which is recommended since
* fixed, shared resources are favored for event loop concurrency. However, * fixed, shared resources are favored for event loop concurrency. However,
* consider declaring a {@link ReactorResourceFactory} bean with * 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. * resources are shut down when the Spring ApplicationContext is closed.
* @param factory the resource factory to obtain the resources from * @param factory the resource factory to obtain the resources from
* @param mapper a mapper for further initialization of the created client * @param mapper a mapper for further initialization of the created client

2
spring-web/src/main/java/org/springframework/http/server/reactive/AbstractListenerWriteFlushProcessor.java

@ -128,7 +128,7 @@ public abstract class AbstractListenerWriteFlushProcessor<T> implements Processo
} }
/** /**
* Invoked when flusing is possible, either in the same thread after a check * Invoked when flushing is possible, either in the same thread after a check
* via {@link #isWritePossible()}, or as a callback from the underlying * via {@link #isWritePossible()}, or as a callback from the underlying
* container. * container.
*/ */

2
spring-web/src/main/java/org/springframework/web/filter/ForwardedHeaderFilter.java

@ -308,7 +308,7 @@ public class ForwardedHeaderFilter extends OncePerRequestFilter {
* Constructor with required information. * Constructor with required information.
* @param delegateRequest supplier for the current * @param delegateRequest supplier for the current
* {@link HttpServletRequestWrapper#getRequest() delegate request} which * {@link HttpServletRequestWrapper#getRequest() delegate request} which
* may change during a forward (e.g. Tocat. * may change during a forward (e.g. Tomcat.
* @param pathHelper the path helper instance * @param pathHelper the path helper instance
* @param baseUrl the host, scheme, and port based on forwarded headers * @param baseUrl the host, scheme, and port based on forwarded headers
*/ */

2
spring-web/src/main/java/org/springframework/web/multipart/commons/CommonsFileUploadSupport.java

@ -241,7 +241,7 @@ public abstract class CommonsFileUploadSupport {
/** /**
* Parse the given List of Commons FileItems into a Spring MultipartParsingResult, * Parse the given List of Commons FileItems into a Spring MultipartParsingResult,
* containing Spring MultipartFile instances and a Map of multipart parameter. * containing Spring MultipartFile instances and a Map of multipart parameter.
* @param fileItems the Commons FileIterms to parse * @param fileItems the Commons FileItems to parse
* @param encoding the encoding to use for form fields * @param encoding the encoding to use for form fields
* @return the Spring MultipartParsingResult * @return the Spring MultipartParsingResult
* @see CommonsMultipartFile#CommonsMultipartFile(org.apache.commons.fileupload.FileItem) * @see CommonsMultipartFile#CommonsMultipartFile(org.apache.commons.fileupload.FileItem)

2
spring-web/src/test/java/org/springframework/http/server/reactive/ServerHttpRequestTests.java

@ -59,7 +59,7 @@ public class ServerHttpRequestTests {
} }
@Test @Test
public void queryParamsWithMulitpleValues() throws Exception { public void queryParamsWithMultipleValues() throws Exception {
MultiValueMap<String, String> params = createHttpRequest("/path?a=1&a=2").getQueryParams(); MultiValueMap<String, String> params = createHttpRequest("/path?a=1&a=2").getQueryParams();
assertEquals(1, params.size()); assertEquals(1, params.size());
assertEquals(Arrays.asList("1", "2"), params.get("a")); assertEquals(Arrays.asList("1", "2"), params.get("a"));

2
spring-web/src/test/java/org/springframework/web/util/HtmlUtilsTests.java

@ -114,7 +114,7 @@ public class HtmlUtilsTests {
assertEquals("'&Prime;' should be decoded to uni-code character 8243", assertEquals("'&Prime;' should be decoded to uni-code character 8243",
"" + (char) 8243, HtmlUtils.htmlUnescape("&Prime;")); "" + (char) 8243, HtmlUtils.htmlUnescape("&Prime;"));
assertEquals("A not supported named reference leads should be ingnored", assertEquals("A not supported named reference leads should be ignored",
"&prIme;", HtmlUtils.htmlUnescape("&prIme;")); "&prIme;", HtmlUtils.htmlUnescape("&prIme;"));
assertEquals("An empty reference '&;' should be survive the decoding", assertEquals("An empty reference '&;' should be survive the decoding",

6
spring-webflux/src/main/java/org/springframework/web/reactive/function/BodyInserters.java

@ -158,10 +158,10 @@ public abstract class BodyInserters {
Assert.notNull(eventsPublisher, "Publisher must not be null"); Assert.notNull(eventsPublisher, "Publisher must not be null");
return (serverResponse, context) -> { return (serverResponse, context) -> {
ResolvableType elmentType = SSE_TYPE; ResolvableType elementType = SSE_TYPE;
MediaType mediaType = MediaType.TEXT_EVENT_STREAM; MediaType mediaType = MediaType.TEXT_EVENT_STREAM;
HttpMessageWriter<ServerSentEvent<T>> writer = findWriter(context, elmentType, mediaType); HttpMessageWriter<ServerSentEvent<T>> writer = findWriter(context, elementType, mediaType);
return write(eventsPublisher, elmentType, mediaType, serverResponse, context, writer); return write(eventsPublisher, elementType, mediaType, serverResponse, context, writer);
}; };
} }

2
spring-webflux/src/main/java/org/springframework/web/reactive/result/view/freemarker/FreeMarkerConfigurer.java

@ -86,7 +86,7 @@ public class FreeMarkerConfigurer extends FreeMarkerConfigurationFactory
/** /**
* Initialize FreeMarkerConfigurationFactory's Configuration * Initialize FreeMarkerConfigurationFactory's Configuration
* if not overridden by a pre-configured FreeMarker Configuation. * if not overridden by a pre-configured FreeMarker Configuration.
* <p>Sets up a ClassTemplateLoader to use for loading Spring macros. * <p>Sets up a ClassTemplateLoader to use for loading Spring macros.
* @see #createConfiguration * @see #createConfiguration
* @see #setConfiguration * @see #setConfiguration

2
spring-webflux/src/test/java/org/springframework/web/reactive/resource/ResourceUrlProviderTests.java

@ -95,7 +95,7 @@ public class ResourceUrlProviderTests {
} }
@Test @Test
public void getVerionedResourceUrl() { public void getVersionedResourceUrl() {
VersionResourceResolver versionResolver = new VersionResourceResolver(); VersionResourceResolver versionResolver = new VersionResourceResolver();
versionResolver.setStrategyMap(Collections.singletonMap("/**", new ContentVersionStrategy())); versionResolver.setStrategyMap(Collections.singletonMap("/**", new ContentVersionStrategy()));
List<ResourceResolver> resolvers = new ArrayList<>(); List<ResourceResolver> resolvers = new ArrayList<>();

2
spring-webflux/src/test/java/org/springframework/web/reactive/result/condition/ProducesRequestConditionTests.java

@ -164,7 +164,7 @@ public class ProducesRequestConditionTests {
} }
@Test @Test
public void compareToMultipleExpressionsAndMultipeAcceptHeaderValues() throws Exception { public void compareToMultipleExpressionsAndMultipleAcceptHeaderValues() throws Exception {
ProducesRequestCondition condition1 = new ProducesRequestCondition("text/*", "text/plain"); ProducesRequestCondition condition1 = new ProducesRequestCondition("text/*", "text/plain");
ProducesRequestCondition condition2 = new ProducesRequestCondition("application/*", "application/xml"); ProducesRequestCondition condition2 = new ProducesRequestCondition("application/*", "application/xml");

2
spring-webmvc/src/main/java/org/springframework/web/servlet/view/freemarker/FreeMarkerConfigurer.java

@ -109,7 +109,7 @@ public class FreeMarkerConfigurer extends FreeMarkerConfigurationFactory
/** /**
* Initialize FreeMarkerConfigurationFactory's Configuration * Initialize FreeMarkerConfigurationFactory's Configuration
* if not overridden by a preconfigured FreeMarker Configuation. * if not overridden by a preconfigured FreeMarker Configuration.
* <p>Sets up a ClassTemplateLoader to use for loading Spring macros. * <p>Sets up a ClassTemplateLoader to use for loading Spring macros.
* @see #createConfiguration * @see #createConfiguration
* @see #setConfiguration * @see #setConfiguration

2
spring-webmvc/src/test/java/org/springframework/context/LifecycleContextBean.java

@ -26,7 +26,7 @@ public class LifecycleContextBean extends LifecycleBean implements ApplicationCo
public void afterPropertiesSet() { public void afterPropertiesSet() {
super.afterPropertiesSet(); super.afterPropertiesSet();
if (this.owningContext == null) 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 @Override

2
spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/condition/ProducesRequestConditionTests.java

@ -195,7 +195,7 @@ public class ProducesRequestConditionTests {
} }
@Test @Test
public void compareToMultipleExpressionsAndMultipeAcceptHeaderValues() { public void compareToMultipleExpressionsAndMultipleAcceptHeaderValues() {
ProducesRequestCondition condition1 = new ProducesRequestCondition("text/*", "text/plain"); ProducesRequestCondition condition1 = new ProducesRequestCondition("text/*", "text/plain");
ProducesRequestCondition condition2 = new ProducesRequestCondition("application/*", "application/xml"); ProducesRequestCondition condition2 = new ProducesRequestCondition("application/*", "application/xml");

4
spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ReactiveTypeHandlerTests.java

@ -193,9 +193,9 @@ public class ReactiveTypeHandlerTests {
testSseResponse(false); 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)); ResponseBodyEmitter emitter = handleValue(Flux.empty(), Flux.class, forClass(String.class));
assertEquals(expectSseEimtter, emitter instanceof SseEmitter); assertEquals(expectSseEmitter, emitter instanceof SseEmitter);
resetRequest(); resetRequest();
} }

2
spring-webmvc/src/test/java/org/springframework/web/servlet/tags/BindTagTests.java

@ -919,7 +919,7 @@ public class BindTagTests extends AbstractTagTests {
transform.setParent(message); transform.setParent(message);
try { try {
transform.doStartTag(); 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) { catch (JspException e) {
// this is ok! // this is ok!

2
spring-webmvc/src/test/java/org/springframework/web/servlet/view/BaseViewTests.java

@ -270,7 +270,7 @@ public class BaseViewTests {
} }
@Test @Test
public void attributeCSVParsingIgoresTrailingComma() { public void attributeCSVParsingIgnoresTrailingComma() {
AbstractView v = new ConcreteView(); AbstractView v = new ConcreteView();
v.setAttributesCSV("foo=[de],"); v.setAttributesCSV("foo=[de],");
assertEquals(1, v.getStaticAttributes().size()); assertEquals(1, v.getStaticAttributes().size());

2
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}. * API method that expects a {@link WebSocketHandler}.
* *
* <p>If initializing the target {@link WebSocketHandler} type requires a Spring * <p>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} * 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. * instances of the target type will be created using the default constructor.
* *

2
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) { for (Class<? extends MessageHandler> subscriberType : subscriberTypes) {
MessageHandler subscriber = this.appContext.getBean(subscriberType); MessageHandler subscriber = this.appContext.getBean(subscriberType);
assertNotNull("No subsription for " + subscriberType, subscriber); assertNotNull("No subscription for " + subscriberType, subscriber);
assertTrue(channel.hasSubscription(subscriber)); assertTrue(channel.hasSubscription(subscriber));
} }

2
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, Per-instance advice is appropriate for introductions, to support mixins. In this case,
the advice adds state to the proxied object. 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.

2
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 going to be used as the `ResourceLoader`, the resource itself is loaded through a
`ClassPathResource`, a `FileSystemResource`, or a `ServletContextResource`, `ClassPathResource`, a `FileSystemResource`, or a `ServletContextResource`,
depending on the exact type of the context. depending on the exact type of the context.

22
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] [source,java,indent=0]
@ -1004,7 +1004,7 @@ transactional settings:
[[transaction-declarative-txadvice-settings]] [[transaction-declarative-txadvice-settings]]
==== <tx:advice/> Settings ==== <tx:advice/> Settings
This section summarizes the various transactional settings that you can specifyi by using This section summarizes the various transactional settings that you can specify by using
the `<tx:advice/>` tag. The default `<tx:advice/>` settings are: the `<tx:advice/>` tag. The default `<tx:advice/>` settings are:
* The <<tx-propagation,propagation setting>> is `REQUIRED.` * The <<tx-propagation,propagation setting>> is `REQUIRED.`
@ -1314,15 +1314,15 @@ properties of the `@Transactional` annotation:
| `isolation` | `isolation`
| `enum`: `Isolation` | `enum`: `Isolation`
| Optional isolation level. Applies only to propagation valeus of `REQUIRED` or `REQUIRES_NEW`. | Optional isolation level. Applies only to propagation values of `REQUIRED` or `REQUIRES_NEW`.
| `timeout` | `timeout`
| `int` (in seconds of granularity) | `int` (in seconds of granularity)
| Optional transaction timeout. Applies only to propagation valeus of `REQUIRED` or `REQUIRES_NEW`. | Optional transaction timeout. Applies only to propagation values of `REQUIRED` or `REQUIRES_NEW`.
| `readOnly` | `readOnly`
| `boolean` | `boolean`
| Read-write versus read-only transaction. Only applicable to valeus of `REQUIRED` or `REQUIRES_NEW`. | Read-write versus read-only transaction. Only applicable to values of `REQUIRED` or `REQUIRES_NEW`.
| `rollbackFor` | `rollbackFor`
| Array of `Class` objects, which must be derived from `Throwable.` | Array of `Class` objects, which must be derived from `Throwable.`
@ -2059,7 +2059,7 @@ per-transaction isolation levels, and proper resuming of transactions in all cas
[[transaction-solutions-to-common-problems]] [[transaction-solutions-to-common-problems]]
=== Solutions to Common Problems === Solutions to Common Problems
This section describes solutions to some commmon problems. This section describes solutions to some common problems.
[[transaction-solutions-to-common-problems-wrong-ptm]] [[transaction-solutions-to-common-problems-wrong-ptm]]
@ -2375,7 +2375,7 @@ including error handling. It includes the following topics:
* <<jdbc-statements-executing>> * <<jdbc-statements-executing>>
* <<jdbc-statements-querying>> * <<jdbc-statements-querying>>
* <<jdbc-updates>> * <<jdbc-updates>>
* <<jdbc-auto-genereted-keys>> * <<jdbc-auto-generated-keys>>
[[jdbc-JdbcTemplate]] [[jdbc-JdbcTemplate]]
@ -2522,7 +2522,7 @@ preceding code snippet as follows:
===== Updating (`INSERT`, `UPDATE`, and `DELETE`) with `JdbcTemplate` ===== Updating (`INSERT`, `UPDATE`, and `DELETE`) with `JdbcTemplate`
You can use the `update(..)` method to perform insert, update, and delete operations. You can use the `update(..)` method to perform insert, update, and delete operations.
Parameter values are usually provided as variable argumets or, alternatively, as an object array. Parameter values are usually provided as variable arguments or, alternatively, as an object array.
The following example inserts a new entry: The following example inserts a new entry:
@ -2736,7 +2736,7 @@ placeholder ( `'?'`) arguments. The `NamedParameterJdbcTemplate` class wraps a
`JdbcTemplate` and delegates to the wrapped `JdbcTemplate` to do much of its work. This `JdbcTemplate` and delegates to the wrapped `JdbcTemplate` to do much of its work. This
section describes only those areas of the `NamedParameterJdbcTemplate` class that differ section describes only those areas of the `NamedParameterJdbcTemplate` class that differ
from the `JdbcTemplate` itself -- namely, programming JDBC statements by using named from the `JdbcTemplate` itself -- namely, programming JDBC statements by using named
parameters. The following exampe shows how to use `NamedParameterJdbcTemplate`: parameters. The following example shows how to use `NamedParameterJdbcTemplate`:
==== ====
[source,java,indent=0] [source,java,indent=0]
@ -3096,11 +3096,11 @@ The following example updates a column for a certain primary key:
In the preceding example, In the preceding example,
an SQL statement has placeholders for row parameters. You can pass the parameter values an SQL statement has placeholders for row parameters. You can pass the parameter values
in as varargs or ,alternatively, as an array of objects. Thus, you should explictly wrap primitives in as varargs or ,alternatively, as an array of objects. Thus, you should explicitly wrap primitives
in the primitive wrapper classes, or you should use auto-boxing. in the primitive wrapper classes, or you should use auto-boxing.
[[jdbc-auto-genereted-keys]] [[jdbc-auto-generated-keys]]
==== Retrieving Auto-generated Keys ==== Retrieving Auto-generated Keys
An `update()` convenience method supports the retrieval of primary keys generated by the An `update()` convenience method supports the retrieval of primary keys generated by the

4
src/docs/asciidoc/integration.adoc

@ -980,7 +980,7 @@ The Spring Framework provides two choices for making calls to REST endpoints:
* <<rest-resttemplate>>: The original Spring REST client with a synchronous, template * <<rest-resttemplate>>: The original Spring REST client with a synchronous, template
method API. method API.
* <<web-reactive.adoc#webflux-client,WebClient>>: a non-blocking, reactive alternative * <<web-reactive.adoc#webflux-client,WebClient>>: a non-blocking, reactive alternative
that supports both synchrnous and asynchronous as well as streaming scenarios. that supports both synchronous and asynchronous as well as streaming scenarios.
NOTE: As of 5.0, the non-blocking, reactive `WebClient` offers a modern alternative to the NOTE: As of 5.0, the non-blocking, reactive `WebClient` offers a modern alternative to the
`RestTemplate` with efficient support for both synchronous and asynchronous as well as streaming `RestTemplate` with efficient support for both synchronous and asynchronous as well as streaming
@ -5094,7 +5094,7 @@ record to be filled by the JCA connector when the response is received. This rec
then returned to the caller of the template. then returned to the caller of the template.
This property holds an implementation of the <<cci-record-creator,`RecordCreator` interface>>, to be used for This property holds an implementation of the <<cci-record-creator,`RecordCreator` interface>>, to be used for
that purpose. You must directly specity the `outputRecordCreator` property on that purpose. You must directly specify the `outputRecordCreator` property on
the `CciTemplate`. The following example shows how to do so: the `CciTemplate`. The following example shows how to do so:
==== ====

Loading…
Cancel
Save