From bd27d147d7441990a54367250d62abb8a21a61af Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Fri, 21 Jul 2017 23:24:13 +0900 Subject: [PATCH] Polish Closes gh-9827 --- SUPPORT.adoc | 4 ++-- .../boot/autoconfigure/AutoConfigurations.java | 2 +- .../boot/autoconfigure/kafka/KafkaProperties.java | 2 +- .../boot/test/context/AbstractApplicationContextTester.java | 6 +++--- .../test/context/AssertProviderApplicationContextTests.java | 2 +- .../boot/context/annotation/Configurations.java | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/SUPPORT.adoc b/SUPPORT.adoc index 4f7db2cdb80..636846de84e 100755 --- a/SUPPORT.adoc +++ b/SUPPORT.adoc @@ -1,7 +1,7 @@ = Getting support for Spring Boot == GitHub issues -We choose not use GitHub issues for general usage questions and support, prefering to +We choose not use GitHub issues for general usage questions and support, preferring to use issues solely for the tracking of bugs and enhancements. If you have a general usage question please do not open a GitHub issue, but use one of the other channels described below. @@ -24,4 +24,4 @@ https://gitter.im/spring-projects/spring-boot[#spring-boot room on Gitter]. == Pivotal Open Source Software Support If you are interested in more dedicated support, Pivotal provides -https://pivotal.io/support/oss[premium support] for Spring Boot. \ No newline at end of file +https://pivotal.io/support/oss[premium support] for Spring Boot. diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurations.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurations.java index 0b2dd293756..d57a087b933 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurations.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurations.java @@ -31,7 +31,7 @@ import org.springframework.util.ClassUtils; /** * {@link Configurations} representing auto-configuration {@code @Configuration} classes. * - * @author Philip Webb + * @author Phillip Webb * @since 2.0.0 */ public class AutoConfigurations extends Configurations implements Ordered { diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/kafka/KafkaProperties.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/kafka/KafkaProperties.java index 4209d30c6dd..09d3b38bbba 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/kafka/KafkaProperties.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/kafka/KafkaProperties.java @@ -670,7 +670,7 @@ public class KafkaProperties { SINGLE, /** - * Invokes the endpoint with a batch of ConsumerRecord. + * Invokes the endpoint with a batch of ConsumerRecords. */ BATCH; diff --git a/spring-boot-test/src/main/java/org/springframework/boot/test/context/AbstractApplicationContextTester.java b/spring-boot-test/src/main/java/org/springframework/boot/test/context/AbstractApplicationContextTester.java index 6bfe9060f5e..669aaff44f3 100644 --- a/spring-boot-test/src/main/java/org/springframework/boot/test/context/AbstractApplicationContextTester.java +++ b/spring-boot-test/src/main/java/org/springframework/boot/test/context/AbstractApplicationContextTester.java @@ -55,7 +55,7 @@ import org.springframework.util.ReflectionUtils; *
  * @Test
  * public someTest() {
- *     this.contex.withPropertyValues("spring.foo=biz").run((loaded) -> {
+ *     this.context.withPropertyValues("spring.foo=biz").run((loaded) -> {
  *         assertThat(loaded).containsSingleBean(MyBean.class);
  *         // other assertions
  *     });
@@ -73,8 +73,8 @@ import org.springframework.util.ReflectionUtils;
  * further checks are required on the cause of the failure: 
  * @Test
  * public someTest() {
- *     this.contex.withPropertyValues("spring.foo=fails").run((loaded) -> {
- *         assertThat(loaded).getFailure().hasCauseInstanceOf(BadPropertyExcepton.class);
+ *     this.context.withPropertyValues("spring.foo=fails").run((loaded) -> {
+ *         assertThat(loaded).getFailure().hasCauseInstanceOf(BadPropertyException.class);
  *         // other assertions
  *     });
  * }
diff --git a/spring-boot-test/src/test/java/org/springframework/boot/test/context/AssertProviderApplicationContextTests.java b/spring-boot-test/src/test/java/org/springframework/boot/test/context/AssertProviderApplicationContextTests.java index 5d5cdad9379..3d7d8549eda 100644 --- a/spring-boot-test/src/test/java/org/springframework/boot/test/context/AssertProviderApplicationContextTests.java +++ b/spring-boot-test/src/test/java/org/springframework/boot/test/context/AssertProviderApplicationContextTests.java @@ -64,7 +64,7 @@ public class AssertProviderApplicationContextTests { } @Test - public void getWhenTypeIsNullShouldThrowExecption() throws Exception { + public void getWhenTypeIsNullShouldThrowException() throws Exception { this.thrown.expect(IllegalArgumentException.class); this.thrown.expectMessage("Type must not be null"); AssertProviderApplicationContext.get(null, ApplicationContext.class, diff --git a/spring-boot/src/main/java/org/springframework/boot/context/annotation/Configurations.java b/spring-boot/src/main/java/org/springframework/boot/context/annotation/Configurations.java index 62d37e182a4..8626c2733cb 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/annotation/Configurations.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/annotation/Configurations.java @@ -98,7 +98,7 @@ public abstract class Configurations { protected abstract Configurations merge(Set> mergedClasses); /** - * Return the classes from all the specified configurations in the oder that they + * Return the classes from all the specified configurations in the order that they * would be registered. * @param configurations the source configuration * @return configuration classes in registration order @@ -108,7 +108,7 @@ public abstract class Configurations { } /** - * Return the classes from all the specified configurations in the oder that they + * Return the classes from all the specified configurations in the order that they * would be registered. * @param configurations the source configuration * @return configuration classes in registration order