Skip to content

Commit 267532b

Browse files
committed
Merge pull request #6487 from Johnny Lim
* gh-6487: Polish
2 parents eb444f5 + 9627d0e commit 267532b

File tree

15 files changed

+23
-23
lines changed

15 files changed

+23
-23
lines changed

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/HeapdumpMvcEndpoint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
*/
5757
@ConfigurationProperties("endpoints.heapdump")
5858
@HypermediaDisabled
59-
public class HeapdumpMvcEndpoint extends AbstractMvcEndpoint implements MvcEndpoint {
59+
public class HeapdumpMvcEndpoint extends AbstractMvcEndpoint {
6060

6161
private final long timeout;
6262

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/freemarker/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
*/
1616

1717
/**
18-
* Auto-configuration for Freemarker.
18+
* Auto-configuration for FreeMarker.
1919
*/
2020
package org.springframework.boot.autoconfigure.freemarker;

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mobile/DeviceDelegatingViewResolverAutoConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ public DeviceDelegatingViewResolverFactory deviceDelegatingViewResolverFactory(
7171

7272
@Configuration
7373
@ConditionalOnClass(FreeMarkerViewResolver.class)
74-
protected static class DeviceDelegatingFreemarkerViewResolverConfiguration {
74+
protected static class DeviceDelegatingFreeMarkerViewResolverConfiguration {
7575

7676
@Bean
7777
@ConditionalOnBean(FreeMarkerViewResolver.class)
78-
public LiteDeviceDelegatingViewResolver deviceDelegatingFreemarkerViewResolver(
78+
public LiteDeviceDelegatingViewResolver deviceDelegatingFreeMarkerViewResolver(
7979
DeviceDelegatingViewResolverFactory factory,
8080
FreeMarkerViewResolver viewResolver) {
8181
return factory.createViewResolver(viewResolver);

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mobile/DeviceDelegatingViewResolverFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public LiteDeviceDelegatingViewResolver createViewResolver(ViewResolver delegate
6969
public LiteDeviceDelegatingViewResolver createViewResolver(ViewResolver delegate) {
7070
if (!(delegate instanceof Ordered)) {
7171
throw new IllegalStateException("ViewResolver " + delegate
72-
+ "should implement " + Ordered.class.getName());
72+
+ " should implement " + Ordered.class.getName());
7373
}
7474
int delegateOrder = ((Ordered) delegate).getOrder();
7575
return createViewResolver(delegate, adjustOrder(delegateOrder));

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/ImportAutoConfigurationImportSelectorTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public void setup() {
6363
@Test
6464
public void importsAreSelected() throws Exception {
6565
AnnotationMetadata annotationMetadata = new SimpleMetadataReaderFactory()
66-
.getMetadataReader(ImportFreemarker.class.getName())
66+
.getMetadataReader(ImportFreeMarker.class.getName())
6767
.getAnnotationMetadata();
6868
String[] imports = this.importSelector.selectImports(annotationMetadata);
6969
assertThat(imports).containsExactly(FreeMarkerAutoConfiguration.class.getName());
@@ -72,7 +72,7 @@ public void importsAreSelected() throws Exception {
7272
@Test
7373
public void propertyExclusionsAreNotApplied() throws Exception {
7474
AnnotationMetadata annotationMetadata = new SimpleMetadataReaderFactory()
75-
.getMetadataReader(ImportFreemarker.class.getName())
75+
.getMetadataReader(ImportFreeMarker.class.getName())
7676
.getAnnotationMetadata();
7777
this.importSelector.selectImports(annotationMetadata);
7878
verifyZeroInteractions(this.environment);
@@ -98,7 +98,7 @@ public void selfAnnotatingAnnotationDoesNotCauseStackOverflow() throws IOExcepti
9898
}
9999

100100
@ImportAutoConfiguration(FreeMarkerAutoConfiguration.class)
101-
static class ImportFreemarker {
101+
static class ImportFreeMarker {
102102

103103
}
104104

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/amqp/RabbitPropertiesTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,15 +205,15 @@ public void addressesDefaultsToNull() {
205205
@Test
206206
public void customAddresses() {
207207
this.properties.setAddresses(
208-
"user:secrect@rabbit1.example.com:1234/alpha,rabbit2.example.com");
208+
"user:secret@rabbit1.example.com:1234/alpha,rabbit2.example.com");
209209
assertThat(this.properties.getAddresses()).isEqualTo(
210-
"user:secrect@rabbit1.example.com:1234/alpha,rabbit2.example.com");
210+
"user:secret@rabbit1.example.com:1234/alpha,rabbit2.example.com");
211211
}
212212

213213
@Test
214214
public void determineAddressesReturnsAddressesWithJustHostAndPort() {
215215
this.properties.setAddresses(
216-
"user:secrect@rabbit1.example.com:1234/alpha,rabbit2.example.com");
216+
"user:secret@rabbit1.example.com:1234/alpha,rabbit2.example.com");
217217
assertThat(this.properties.determineAddresses())
218218
.isEqualTo("rabbit1.example.com:1234,rabbit2.example.com:5672");
219219
}

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/mobile/DeviceDelegatingViewResolverAutoConfigurationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ public void deviceDelegatingJspResourceViewResolver() throws Exception {
8888
}
8989

9090
@Test
91-
public void deviceDelegatingFreemarkerViewResolver() throws Exception {
91+
public void deviceDelegatingFreeMarkerViewResolver() throws Exception {
9292
load(Collections.<Class<?>>singletonList(FreeMarkerAutoConfiguration.class),
9393
"spring.mobile.devicedelegatingviewresolver.enabled:true");
9494
assertThat(this.context.getBeansOfType(LiteDeviceDelegatingViewResolver.class))
9595
.hasSize(2);
9696
assertLiteDeviceDelegatingViewResolver(
9797
this.context.getBean(FreeMarkerViewResolver.class),
98-
"deviceDelegatingFreemarkerViewResolver");
98+
"deviceDelegatingFreeMarkerViewResolver");
9999
}
100100

101101
@Test

spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ content into your application; rather pick only the properties that you need.
551551
spring.data.cassandra.reconnection-policy= # Reconnection policy class.
552552
spring.data.cassandra.retry-policy= # Class name of the retry policy.
553553
spring.data.cassandra.serial-consistency-level= # Queries serial consistency level.
554-
spring.data.cassandra.schema-action= # Schema action to take at startup.
554+
spring.data.cassandra.schema-action=none # Schema action to take at startup.
555555
spring.data.cassandra.ssl=false # Enable SSL support.
556556
spring.data.cassandra.username= # Login user of the server.
557557

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ only contain one entry (with name "`my another name`" and description `null`). T
746746
configuration _will not_ add a second `MyPojo` instance to the list, and it won't merge
747747
the items.
748748

749-
When a collection is specified in multiples profiles, the one with highest priority is
749+
When a collection is specified in multiple profiles, the one with highest priority is
750750
used (and only that one):
751751

752752
[source,yaml,indent=0]

spring-boot-samples/README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ The following sample applications are provided:
229229
| Web application packaged as a war file
230230

231231
| link:spring-boot-sample-web-freemarker[spring-boot-sample-web-freemarker]
232-
| Web application that uses Freemarker templates
232+
| Web application that uses FreeMarker templates
233233

234234
| link:spring-boot-sample-web-groovy-templates[spring-boot-sample-web-groovy-templates]
235235
| Web application that uses Groovy templates

0 commit comments

Comments
 (0)