Merge pull request #4463 from izeye/typo-20151113

* pr/4463:
  Fix typos
pull/4463/merge
Stephane Nicoll 9 years ago
commit 78f739dbdd

@ -456,7 +456,7 @@ public class JarFile extends java.util.jar.JarFile implements Iterable<JarEntryD
} }
/** /**
* Reset any cached handers just in case a jar protocol has already been used. We * Reset any cached handlers just in case a jar protocol has already been used. We
* reset the handler by trying to set a null {@link URLStreamHandlerFactory} which * reset the handler by trying to set a null {@link URLStreamHandlerFactory} which
* should have no effect other than clearing the handlers cache. * should have no effect other than clearing the handlers cache.
*/ */

@ -755,7 +755,7 @@ public class SpringApplication {
/** /**
* Called after the context has been refreshed. * Called after the context has been refreshed.
* @param context the application context * @param context the application context
* @param args the application argumments * @param args the application arguments
*/ */
protected void afterRefresh(ConfigurableApplicationContext context, protected void afterRefresh(ConfigurableApplicationContext context,
ApplicationArguments args) { ApplicationArguments args) {
@ -799,7 +799,7 @@ public class SpringApplication {
/** /**
* Called after the context has been refreshed. * Called after the context has been refreshed.
* @param context the application context * @param context the application context
* @param args the application argumments * @param args the application arguments
* @deprecated in 1.3 in favor of * @deprecated in 1.3 in favor of
* {@link #afterRefresh(ConfigurableApplicationContext, ApplicationArguments)} * {@link #afterRefresh(ConfigurableApplicationContext, ApplicationArguments)}
*/ */

@ -100,7 +100,7 @@ public class ServletRegistrationBean extends RegistrationBean {
/** /**
* Returns the servlet being registered. * Returns the servlet being registered.
* @return the sevlet * @return the servlet
*/ */
protected Servlet getServlet() { protected Servlet getServlet() {
return this.servlet; return this.servlet;

@ -106,7 +106,7 @@ public class AtomikosProperties {
/** /**
* Specifies if subtransactions should be joined when possible. Defaults to true. When * Specifies if subtransactions should be joined when possible. Defaults to true. When
* false, no attempt to call {@code XAResource.start(TM_JOIN)} will be made for * false, no attempt to call {@code XAResource.start(TM_JOIN)} will be made for
* different but related subtransctions. This setting has no effect on resource access * different but related subtransactions. This setting has no effect on resource access
* within one and the same transaction. If you don't use subtransactions then this * within one and the same transaction. If you don't use subtransactions then this
* setting can be ignored. * setting can be ignored.
* @param serialJtaTransactions if serial JTA transaction are supported * @param serialJtaTransactions if serial JTA transaction are supported

@ -55,7 +55,7 @@ abstract class ServletComponentHandler {
String[] urlPatterns = (String[]) attributes.get("urlPatterns"); String[] urlPatterns = (String[]) attributes.get("urlPatterns");
if (urlPatterns.length > 0) { if (urlPatterns.length > 0) {
Assert.state(value.length == 0, Assert.state(value.length == 0,
"The urlPatterns and value attributes " + "are mututally exclusive"); "The urlPatterns and value attributes are mutually exclusive.");
return urlPatterns; return urlPatterns;
} }
return value; return value;

@ -46,11 +46,11 @@ class ServletComponentRegisteringPostProcessor
private static final List<ServletComponentHandler> HANDLERS; private static final List<ServletComponentHandler> HANDLERS;
static { static {
List<ServletComponentHandler> handers = new ArrayList<ServletComponentHandler>(); List<ServletComponentHandler> handlers = new ArrayList<ServletComponentHandler>();
handers.add(new WebServletHandler()); handlers.add(new WebServletHandler());
handers.add(new WebFilterHandler()); handlers.add(new WebFilterHandler());
handers.add(new WebListenerHandler()); handlers.add(new WebListenerHandler());
HANDLERS = Collections.unmodifiableList(handers); HANDLERS = Collections.unmodifiableList(handlers);
} }
private final Set<String> packagesToScan; private final Set<String> packagesToScan;

@ -189,7 +189,7 @@ public class BindingPreparationTests {
wrapper.setPropertyValue("nested[foo]", new LinkedHashMap<String, Object>()); wrapper.setPropertyValue("nested[foo]", new LinkedHashMap<String, Object>());
// But it might equally well be a collection, if nested[foo][0] // But it might equally well be a collection, if nested[foo][0]
wrapper.setPropertyValue("nested[foo]", new ArrayList<Object>()); wrapper.setPropertyValue("nested[foo]", new ArrayList<Object>());
// Then it would have to be actually bound to get the list to autogrow // Then it would have to be actually bound to get the list to auto-grow
wrapper.setPropertyValue("nested[foo][0]", "bar"); wrapper.setPropertyValue("nested[foo][0]", "bar");
assertNotNull(wrapper.getPropertyValue("nested[foo][0]")); assertNotNull(wrapper.getPropertyValue("nested[foo][0]"));
} }

@ -243,7 +243,7 @@ public class RelaxedDataBinderTests {
} }
@Test @Test
public void testBindNestedWithEnviromentStyle() throws Exception { public void testBindNestedWithEnvironmentStyle() throws Exception {
TargetWithNestedObject target = new TargetWithNestedObject(); TargetWithNestedObject target = new TargetWithNestedObject();
bind(target, "nested_foo: bar\n" + "nested_value: 123"); bind(target, "nested_foo: bar\n" + "nested_value: 123");
assertEquals(123, target.getNested().getValue()); assertEquals(123, target.getNested().getValue());

@ -155,7 +155,7 @@ public class WebFilterHandlerTests {
public void urlPatternsDeclaredTwice() throws IOException { public void urlPatternsDeclaredTwice() throws IOException {
this.thrown.expect(IllegalStateException.class); this.thrown.expect(IllegalStateException.class);
this.thrown.expectMessage( this.thrown.expectMessage(
"The urlPatterns and value attributes are mututally " + "exclusive"); "The urlPatterns and value attributes are mutually exclusive.");
getBeanDefinition(UrlPatternsDeclaredTwiceFilter.class); getBeanDefinition(UrlPatternsDeclaredTwiceFilter.class);
} }

@ -134,7 +134,7 @@ public class WebServletHandlerTests {
public void urlPatternsDeclaredTwice() throws IOException { public void urlPatternsDeclaredTwice() throws IOException {
this.thrown.expect(IllegalStateException.class); this.thrown.expect(IllegalStateException.class);
this.thrown.expectMessage( this.thrown.expectMessage(
"The urlPatterns and value attributes are mututally " + "exclusive"); "The urlPatterns and value attributes are mutually exclusive.");
getBeanDefinition(UrlPatternsDeclaredTwiceServlet.class); getBeanDefinition(UrlPatternsDeclaredTwiceServlet.class);
} }

Loading…
Cancel
Save