Fix typos in code and documentation
See gh-31734
This commit is contained in:
committed by
Phillip Webb
parent
4bcec6e0ee
commit
dbfc6bded4
@@ -61,8 +61,8 @@ public class DefaultPropertiesPropertySource extends MapPropertySource {
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a consume a new {@link DefaultPropertiesPropertySource} instance if the
|
||||
* provided source is not empty.
|
||||
* Create a new {@link DefaultPropertiesPropertySource} instance if the provided
|
||||
* source is not empty.
|
||||
* @param source the {@code Map} source
|
||||
* @param action the action used to consume the
|
||||
* {@link DefaultPropertiesPropertySource}
|
||||
|
||||
@@ -147,8 +147,8 @@ public class SpringApplicationBuilder {
|
||||
|
||||
/**
|
||||
* Create an application context (and its parent if specified) with the command line
|
||||
* args provided. The parent is run first with the same arguments if has not yet been
|
||||
* started.
|
||||
* args provided. The parent is run first with the same arguments if it has not yet
|
||||
* been started.
|
||||
* @param args the command line arguments
|
||||
* @return an application context created from the current state
|
||||
*/
|
||||
|
||||
@@ -96,7 +96,7 @@ public class CloudFoundryVcapEnvironmentPostProcessor implements EnvironmentPost
|
||||
|
||||
private final Log logger;
|
||||
|
||||
// Before ConfigFileApplicationListener so values there can use these ones
|
||||
// Before ConfigFileApplicationListener so values there can use these
|
||||
private int order = ConfigDataEnvironmentPostProcessor.ORDER - 1;
|
||||
|
||||
/**
|
||||
|
||||
@@ -35,8 +35,8 @@ import org.springframework.util.CollectionUtils;
|
||||
|
||||
/**
|
||||
* A single element that may directly or indirectly contribute configuration data to the
|
||||
* {@link Environment}. There are several different {@link Kind kinds} of contributor, all
|
||||
* are immutable and will be replaced with new versions as imports are processed.
|
||||
* {@link Environment}. There are several {@link Kind kinds} of contributor, all are
|
||||
* immutable and will be replaced with new versions as imports are processed.
|
||||
* <p>
|
||||
* Contributors may provide a set of imports that should be processed and ultimately
|
||||
* turned into children. There are two distinct import phases:
|
||||
|
||||
@@ -125,7 +125,7 @@ public class EventPublishingRunListener implements SpringApplicationRunListener,
|
||||
}
|
||||
else {
|
||||
// An inactive context may not have a multicaster so we use our multicaster to
|
||||
// call all of the context's listeners instead
|
||||
// call all the context's listeners instead
|
||||
if (context instanceof AbstractApplicationContext) {
|
||||
for (ApplicationListener<?> listener : ((AbstractApplicationContext) context)
|
||||
.getApplicationListeners()) {
|
||||
|
||||
@@ -62,7 +62,7 @@ public enum DatabaseDriver {
|
||||
"SELECT COUNT(*) FROM INFORMATION_SCHEMA.SYSTEM_USERS"),
|
||||
|
||||
/**
|
||||
* SQL Lite.
|
||||
* SQLite.
|
||||
*/
|
||||
SQLITE("SQLite", "org.sqlite.JDBC"),
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ import org.springframework.util.Assert;
|
||||
import org.springframework.util.ClassUtils;
|
||||
|
||||
/**
|
||||
* Connection details for embedded databases compatible with r2dbc.
|
||||
* Connection details for embedded databases compatible with R2DBC.
|
||||
*
|
||||
* @author Mark Paluch
|
||||
* @author Stephane Nicoll
|
||||
|
||||
@@ -81,9 +81,9 @@ public class ApplicationTemp {
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a sub-directory of the application temp.
|
||||
* @param subDir the sub-directory name
|
||||
* @return a sub-directory
|
||||
* Return a subdirectory of the application temp.
|
||||
* @param subDir the subdirectory name
|
||||
* @return a subdirectory
|
||||
*/
|
||||
public File getDir(String subDir) {
|
||||
return createDirectory(getPath().resolve(subDir)).toFile();
|
||||
|
||||
@@ -479,7 +479,7 @@ public class JettyServletWebServerFactory extends AbstractServletWebServerFactor
|
||||
|
||||
/**
|
||||
* Returns a mutable collection of Jetty {@link JettyServerCustomizer}s that will be
|
||||
* applied to the {@link Server} before the it is created.
|
||||
* applied to the {@link Server} before it is created.
|
||||
* @return the {@link JettyServerCustomizer}s
|
||||
*/
|
||||
public Collection<JettyServerCustomizer> getServerCustomizers() {
|
||||
@@ -694,13 +694,13 @@ public class JettyServletWebServerFactory extends AbstractServletWebServerFactor
|
||||
@Override
|
||||
public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
|
||||
throws IOException, ServletException {
|
||||
HttpServletResponse wrappedResponse = new ResposeWrapper(response);
|
||||
HttpServletResponse wrappedResponse = new ResponseWrapper(response);
|
||||
super.handle(target, baseRequest, request, wrappedResponse);
|
||||
}
|
||||
|
||||
class ResposeWrapper extends HttpServletResponseWrapper {
|
||||
class ResponseWrapper extends HttpServletResponseWrapper {
|
||||
|
||||
ResposeWrapper(HttpServletResponse response) {
|
||||
ResponseWrapper(HttpServletResponse response) {
|
||||
super(response);
|
||||
}
|
||||
|
||||
|
||||
@@ -277,7 +277,7 @@ public abstract class AbstractServletWebServerFactory extends AbstractConfigurab
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether or not the JSP servlet should be registered with the web server.
|
||||
* Returns whether the JSP servlet should be registered with the web server.
|
||||
* @return {@code true} if the servlet should be registered, otherwise {@code false}
|
||||
*/
|
||||
protected boolean shouldRegisterJspServlet() {
|
||||
|
||||
@@ -19,7 +19,7 @@ package org.springframework.boot.context.properties;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Data object with a pubic method picked up by the {@code ObjectToObjectConverter}. Used
|
||||
* Data object with a public method picked up by the {@code ObjectToObjectConverter}. Used
|
||||
* in {@link ConfigurationPropertiesTests}.
|
||||
*
|
||||
* @author Phillip Webb
|
||||
|
||||
@@ -76,7 +76,7 @@ class BinderTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
void creatWhenSourcesIsNullIterableShouldThrowException() {
|
||||
void createWhenSourcesIsNullIterableShouldThrowException() {
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> new Binder((Iterable<ConfigurationPropertySource>) null))
|
||||
.withMessageContaining("Sources must not be null");
|
||||
}
|
||||
|
||||
@@ -718,7 +718,7 @@ class ConfigurationPropertyNameTests {
|
||||
void hashCodeIsStored() {
|
||||
ConfigurationPropertyName name = ConfigurationPropertyName.of("hash.code");
|
||||
int hashCode = name.hashCode();
|
||||
// hasFieldOrPropertyWithValue would lookup for hashCode()
|
||||
// hasFieldOrPropertyWithValue would look up for hashCode()
|
||||
assertThat(ReflectionTestUtils.getField(name, "hashCode")).isEqualTo(hashCode);
|
||||
}
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ class DatabaseDriverClassNameTests {
|
||||
}
|
||||
|
||||
private List<String> getInterfaceNames(String className) throws IOException {
|
||||
// Use ASM to avoid unwanted side-effects of loading JDBC drivers
|
||||
// Use ASM to avoid unwanted side effects of loading JDBC drivers
|
||||
ClassReader classReader = new ClassReader(getClass().getResourceAsStream("/" + className + ".class"));
|
||||
List<String> interfaceNames = new ArrayList<>();
|
||||
for (String name : classReader.getInterfaces()) {
|
||||
|
||||
@@ -119,7 +119,7 @@ class AnnotationConfigServletWebServerApplicationContextTests {
|
||||
ServletContextAwareEmbeddedConfiguration.class);
|
||||
verifyContext();
|
||||
// You can't initialize the application context and inject the servlet context
|
||||
// because of a cycle - we'd like this to be not null but it never will be
|
||||
// because of a cycle - we'd like this to be not null, but it never will be
|
||||
assertThat(this.context.getBean(ServletContextAwareEmbeddedConfiguration.class).getServletContext()).isNull();
|
||||
}
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ class ServletWebServerApplicationContextTests {
|
||||
addWebServerFactoryBean();
|
||||
this.context.refresh();
|
||||
MockServletWebServerFactory factory = getWebServerFactory();
|
||||
// Ensure that the context has been setup
|
||||
// Ensure that the context has been set up
|
||||
assertThat(this.context.getServletContext()).isEqualTo(factory.getServletContext());
|
||||
then(factory.getServletContext()).should()
|
||||
.setAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, this.context);
|
||||
@@ -125,7 +125,7 @@ class ServletWebServerApplicationContextTests {
|
||||
@Test
|
||||
void doesNotRegistersShutdownHook() {
|
||||
// See gh-314 for background. We no longer register the shutdown hook
|
||||
// since it is really the callers responsibility. The shutdown hook could
|
||||
// since it is really the caller's responsibility. The shutdown hook could
|
||||
// also be problematic in a classic WAR deployment.
|
||||
addWebServerFactoryBean();
|
||||
this.context.refresh();
|
||||
|
||||
Reference in New Issue
Block a user