Browse Source

Polish

See gh-13963
pull/14003/head
Johnny Lim 8 years ago committed by Stephane Nicoll
parent
commit
94468e5865
  1. 2
      spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/cache/EhCache2CacheAutoConfigurationTests.java
  2. 2
      spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/cache/EhCache3CacheAutoConfigurationTests.java
  3. 2
      spring-boot-project/spring-boot-docs/src/main/asciidoc/getting-started.adoc
  4. 4
      spring-boot-project/spring-boot/src/main/java/org/springframework/boot/convert/CollectionToDelimitedStringConverter.java

2
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/cache/EhCache2CacheAutoConfigurationTests.java vendored

@ -31,7 +31,7 @@ import org.springframework.cache.ehcache.EhCacheCacheManager; @@ -31,7 +31,7 @@ import org.springframework.cache.ehcache.EhCacheCacheManager;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Tests for {@link CacheAutoConfigurationTests} with EhCache 2.
* Tests for {@link CacheAutoConfiguration} with EhCache 2.
*
* @author Stephane Nicoll
* @author Andy Wilkinson

2
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/cache/EhCache3CacheAutoConfigurationTests.java vendored

@ -30,7 +30,7 @@ import org.springframework.core.io.Resource; @@ -30,7 +30,7 @@ import org.springframework.core.io.Resource;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Tests for {@link CacheAutoConfigurationTests} with EhCache 3.
* Tests for {@link CacheAutoConfiguration} with EhCache 3.
*
* @author Stephane Nicoll
* @author Andy Wilkinson

2
spring-boot-project/spring-boot-docs/src/main/asciidoc/getting-started.adoc

@ -465,7 +465,7 @@ feature, add the following dependency to your project: @@ -465,7 +465,7 @@ feature, add the following dependency to your project:
</dependency>
----
WARNING: properties that are added late to the environment, such as when using
WARNING: Properties that are added late to the environment, such as when using
`@PropertySource`, will not be taken into account.
NOTE: Once you're done with the migration, please make sure to remove this module from

4
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/convert/CollectionToDelimitedStringConverter.java

@ -73,10 +73,10 @@ final class CollectionToDelimitedStringConverter implements ConditionalGenericCo @@ -73,10 +73,10 @@ final class CollectionToDelimitedStringConverter implements ConditionalGenericCo
}
return source.stream()
.map((element) -> convertElement(element, sourceType, targetType))
.collect(Collectors.joining(getDelimter(sourceType)));
.collect(Collectors.joining(getDelimiter(sourceType)));
}
private CharSequence getDelimter(TypeDescriptor sourceType) {
private CharSequence getDelimiter(TypeDescriptor sourceType) {
Delimiter annotation = sourceType.getAnnotation(Delimiter.class);
return (annotation != null) ? annotation.value() : ",";
}

Loading…
Cancel
Save