Skip to content

Commit 8d3d16b

Browse files
committed
Merge pull request #9855 from izeye:polish-20170725-update
* pr/9855: Polish
2 parents 75fc0c3 + 9b15389 commit 8d3d16b

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

spring-boot-docs/src/main/asciidoc/howto.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,7 +1519,7 @@ There is a catch however. Because the actual type of the connection pool is not
15191519
no keys are generated in the metadata for your custom `DataSource` and no completion is
15201520
available in your IDE (The `DataSource` interface doesn't expose any property). Also, if
15211521
you happen to have Hikari on the classpath, this basic setup will not work because Hikari
1522-
has no `url` parameter (but a `jdbcUrl` parameter). You will have to rewrite your
1522+
has no `url` property (but a `jdbcUrl` property). You will have to rewrite your
15231523
configuration as follows:
15241524

15251525
[source,properties,indent=0]
@@ -1585,7 +1585,7 @@ described in the previous section. You must, however, mark one of the `DataSourc
15851585
type.
15861586

15871587
If you create your own `DataSource`, the auto-configuration will back off. In the example
1588-
below, we provide the _exact_ same features set than what the auto-configuration provides
1588+
below, we provide the _exact_ same features set as what the auto-configuration provides
15891589
on the primary data source:
15901590

15911591
[source,java,indent=0,subs="verbatim,quotes,attributes"]
@@ -1618,7 +1618,7 @@ include::{code-examples}/jdbc/CompleteTwoDataSourcesExample.java[tag=configurati
16181618
----
16191619

16201620
This final example configures two data sources on custom namespaces with the same logic
1621-
than what Spring Boot would do in auto-configuration.
1621+
as what Spring Boot would do in auto-configuration.
16221622

16231623

16241624

spring-boot/src/main/java/org/springframework/boot/SpringApplication.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,14 +262,14 @@ public SpringApplication(ResourceLoader resourceLoader, Class<?>... primarySourc
262262
this.resourceLoader = resourceLoader;
263263
Assert.notNull(primarySources, "PrimarySources must not be null");
264264
this.primarySources = new LinkedHashSet<>(Arrays.asList(primarySources));
265-
this.webApplicationType = deduceWebApplication();
265+
this.webApplicationType = deduceWebApplicationType();
266266
setInitializers((Collection) getSpringFactoriesInstances(
267267
ApplicationContextInitializer.class));
268268
setListeners((Collection) getSpringFactoriesInstances(ApplicationListener.class));
269269
this.mainApplicationClass = deduceMainApplicationClass();
270270
}
271271

272-
private WebApplicationType deduceWebApplication() {
272+
private WebApplicationType deduceWebApplicationType() {
273273
if (ClassUtils.isPresent(REACTIVE_WEB_ENVIRONMENT_CLASS, null)
274274
&& !ClassUtils.isPresent(MVC_WEB_ENVIRONMENT_CLASS, null)) {
275275
return WebApplicationType.REACTIVE;

spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,12 +302,12 @@ public SpringApplicationBuilder web(boolean webEnvironment) {
302302
/**
303303
* Flag to explicitly request a specific type of web application. Auto-detected based
304304
* on the classpath if not set.
305-
* @param webApplication the type of web application
305+
* @param webApplicationType the type of web application
306306
* @return the current builder
307307
* @since 2.0.0
308308
*/
309-
public SpringApplicationBuilder web(WebApplicationType webApplication) {
310-
this.application.setWebApplicationType(webApplication);
309+
public SpringApplicationBuilder web(WebApplicationType webApplicationType) {
310+
this.application.setWebApplicationType(webApplicationType);
311311
return this;
312312
}
313313

spring-boot/src/test/java/org/springframework/boot/web/servlet/server/AbstractServletWebServerFactoryTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,12 +763,12 @@ public void getValidSessionStoreWhenSessionStoreReferencesFile() throws Exceptio
763763
}
764764

765765
@Test
766-
public void compressionOfResposeToGetRequest() throws Exception {
766+
public void compressionOfResponseToGetRequest() throws Exception {
767767
assertThat(doTestCompression(10000, null, null)).isTrue();
768768
}
769769

770770
@Test
771-
public void compressionOfResposeToPostRequest() throws Exception {
771+
public void compressionOfResponseToPostRequest() throws Exception {
772772
assertThat(doTestCompression(10000, null, null, HttpMethod.POST)).isTrue();
773773
}
774774

0 commit comments

Comments
 (0)