Skip to content
Closed

Polish #6487

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
*/
@ConfigurationProperties("endpoints.heapdump")
@HypermediaDisabled
public class HeapdumpMvcEndpoint extends AbstractMvcEndpoint implements MvcEndpoint {
public class HeapdumpMvcEndpoint extends AbstractMvcEndpoint {

private final long timeout;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
*/

/**
* Auto-configuration for Freemarker.
* Auto-configuration for FreeMarker.
*/
package org.springframework.boot.autoconfigure.freemarker;
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ public DeviceDelegatingViewResolverFactory deviceDelegatingViewResolverFactory(

@Configuration
@ConditionalOnClass(FreeMarkerViewResolver.class)
protected static class DeviceDelegatingFreemarkerViewResolverConfiguration {
protected static class DeviceDelegatingFreeMarkerViewResolverConfiguration {

@Bean
@ConditionalOnBean(FreeMarkerViewResolver.class)
public LiteDeviceDelegatingViewResolver deviceDelegatingFreemarkerViewResolver(
public LiteDeviceDelegatingViewResolver deviceDelegatingFreeMarkerViewResolver(
DeviceDelegatingViewResolverFactory factory,
FreeMarkerViewResolver viewResolver) {
return factory.createViewResolver(viewResolver);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public LiteDeviceDelegatingViewResolver createViewResolver(ViewResolver delegate
public LiteDeviceDelegatingViewResolver createViewResolver(ViewResolver delegate) {
if (!(delegate instanceof Ordered)) {
throw new IllegalStateException("ViewResolver " + delegate
+ "should implement " + Ordered.class.getName());
+ " should implement " + Ordered.class.getName());
}
int delegateOrder = ((Ordered) delegate).getOrder();
return createViewResolver(delegate, adjustOrder(delegateOrder));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void setup() {
@Test
public void importsAreSelected() throws Exception {
AnnotationMetadata annotationMetadata = new SimpleMetadataReaderFactory()
.getMetadataReader(ImportFreemarker.class.getName())
.getMetadataReader(ImportFreeMarker.class.getName())
.getAnnotationMetadata();
String[] imports = this.importSelector.selectImports(annotationMetadata);
assertThat(imports).containsExactly(FreeMarkerAutoConfiguration.class.getName());
Expand All @@ -72,7 +72,7 @@ public void importsAreSelected() throws Exception {
@Test
public void propertyExclusionsAreNotApplied() throws Exception {
AnnotationMetadata annotationMetadata = new SimpleMetadataReaderFactory()
.getMetadataReader(ImportFreemarker.class.getName())
.getMetadataReader(ImportFreeMarker.class.getName())
.getAnnotationMetadata();
this.importSelector.selectImports(annotationMetadata);
verifyZeroInteractions(this.environment);
Expand All @@ -98,7 +98,7 @@ public void selfAnnotatingAnnotationDoesNotCauseStackOverflow() throws IOExcepti
}

@ImportAutoConfiguration(FreeMarkerAutoConfiguration.class)
static class ImportFreemarker {
static class ImportFreeMarker {

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,15 +205,15 @@ public void addressesDefaultsToNull() {
@Test
public void customAddresses() {
this.properties.setAddresses(
"user:secrect@rabbit1.example.com:1234/alpha,rabbit2.example.com");
"user:secret@rabbit1.example.com:1234/alpha,rabbit2.example.com");
assertThat(this.properties.getAddresses()).isEqualTo(
"user:secrect@rabbit1.example.com:1234/alpha,rabbit2.example.com");
"user:secret@rabbit1.example.com:1234/alpha,rabbit2.example.com");
}

@Test
public void determineAddressesReturnsAddressesWithJustHostAndPort() {
this.properties.setAddresses(
"user:secrect@rabbit1.example.com:1234/alpha,rabbit2.example.com");
"user:secret@rabbit1.example.com:1234/alpha,rabbit2.example.com");
assertThat(this.properties.determineAddresses())
.isEqualTo("rabbit1.example.com:1234,rabbit2.example.com:5672");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ public void deviceDelegatingJspResourceViewResolver() throws Exception {
}

@Test
public void deviceDelegatingFreemarkerViewResolver() throws Exception {
public void deviceDelegatingFreeMarkerViewResolver() throws Exception {
load(Collections.<Class<?>>singletonList(FreeMarkerAutoConfiguration.class),
"spring.mobile.devicedelegatingviewresolver.enabled:true");
assertThat(this.context.getBeansOfType(LiteDeviceDelegatingViewResolver.class))
.hasSize(2);
assertLiteDeviceDelegatingViewResolver(
this.context.getBean(FreeMarkerViewResolver.class),
"deviceDelegatingFreemarkerViewResolver");
"deviceDelegatingFreeMarkerViewResolver");
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ content into your application; rather pick only the properties that you need.
spring.data.cassandra.reconnection-policy= # Reconnection policy class.
spring.data.cassandra.retry-policy= # Class name of the retry policy.
spring.data.cassandra.serial-consistency-level= # Queries serial consistency level.
spring.data.cassandra.schema-action= # Schema action to take at startup.
spring.data.cassandra.schema-action=none # Schema action to take at startup.
spring.data.cassandra.ssl=false # Enable SSL support.
spring.data.cassandra.username= # Login user of the server.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ only contain one entry (with name "`my another name`" and description `null`). T
configuration _will not_ add a second `MyPojo` instance to the list, and it won't merge
the items.

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

[source,yaml,indent=0]
Expand Down
2 changes: 1 addition & 1 deletion spring-boot-samples/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ The following sample applications are provided:
| Web application packaged as a war file

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

| link:spring-boot-sample-web-groovy-templates[spring-boot-sample-web-groovy-templates]
| Web application that uses Groovy templates
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div class="container">
<div class="navbar">
<div class="navbar-inner">
<a class="brand" href="http://www.thymeleaf.org"> Freemarker -
<a class="brand" href="http://freemarker.org/"> FreeMarker -
Plain </a>
<ul class="nav">
<li><a href="${home}"> Home </a></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div class="container">
<div class="navbar">
<div class="navbar-inner">
<a class="brand" href="http://www.thymeleaf.org"> Freemarker -
<a class="brand" href="http://freemarker.org/"> FreeMarker -
Plain </a>
<ul class="nav">
<li><a href="${home}"> Home </a></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</parent>
<artifactId>spring-boot-starter-freemarker</artifactId>
<name>Spring Boot FreeMarker Starter</name>
<description>Starter for building MVC web applications using Freemarker views</description>
<description>Starter for building MVC web applications using FreeMarker views</description>
<url>http://projects.spring.io/spring-boot/</url>
<organization>
<name>Pivotal Software, Inc.</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ private void closeQuietly(Closeable closeable) {

private void verify() {
Assert.state(this.resourceLoadClass != null,
"Unitialized JsonMarshalTester (ResourceLoadClass is null)");
Assert.state(this.type != null, "Unitialized JsonMarshalTester (Type is null)");
"Uninitialized JsonMarshalTester (ResourceLoadClass is null)");
Assert.state(this.type != null, "Uninitialized JsonMarshalTester (Type is null)");
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class BasicJsonTester {
private JsonLoader loader;

/**
* Create a new uninialized {@link BasicJsonTester} instance.
* Create a new uninitialized {@link BasicJsonTester} instance.
*/
protected BasicJsonTester() {
}
Expand Down Expand Up @@ -139,7 +139,7 @@ public JsonContent<Object> from(Resource source) {
}

private void verify() {
Assert.state(this.loader != null, "Unitialized BasicJsonTester");
Assert.state(this.loader != null, "Uninitialized BasicJsonTester");
}

private JsonContent<Object> getJsonContent(String json) {
Expand Down