Skip to content

Commit d0b9ede

Browse files
committed
Polish
1 parent 3684c2e commit d0b9ede

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionMessage.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ public final class ItemsBuilder {
314314

315315
private final Builder condition;
316316

317-
private final String reson;
317+
private final String reason;
318318

319319
private final String singular;
320320

@@ -323,7 +323,7 @@ public final class ItemsBuilder {
323323
private ItemsBuilder(Builder condition, String reason, String singular,
324324
String plural) {
325325
this.condition = condition;
326-
this.reson = reason;
326+
this.reason = reason;
327327
this.singular = singular;
328328
this.plural = plural;
329329
}
@@ -383,7 +383,7 @@ public ConditionMessage items(Collection<?> items) {
383383
*/
384384
public ConditionMessage items(Style style, Collection<?> items) {
385385
Assert.notNull(style, "Style must not be null");
386-
StringBuilder message = new StringBuilder(this.reson);
386+
StringBuilder message = new StringBuilder(this.reason);
387387
items = style.applyTo(items);
388388
if ((this.condition == null || items.size() <= 1)
389389
&& StringUtils.hasLength(this.singular)) {

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnResourceCondition.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ public ConditionOutcome getMatchOutcome(ConditionContext context,
5252
+ "least one resource location");
5353
List<String> missing = new ArrayList<String>();
5454
for (String location : locations) {
55-
String resouce = context.getEnvironment().resolvePlaceholders(location);
56-
if (!loader.getResource(resouce).exists()) {
55+
String resource = context.getEnvironment().resolvePlaceholders(location);
56+
if (!loader.getResource(resource).exists()) {
5757
missing.add(location);
5858
}
5959
}

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DataSourceAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ static class DataSourceAvailableCondition extends SpringBootCondition {
224224
public ConditionOutcome getMatchOutcome(ConditionContext context,
225225
AnnotatedTypeMetadata metadata) {
226226
ConditionMessage.Builder message = ConditionMessage
227-
.forCondition("EmbeddedDataAvailble");
227+
.forCondition("EmbeddedDataAvailable");
228228
if (hasBean(context, DataSource.class)
229229
|| hasBean(context, XADataSource.class)) {
230230
return ConditionOutcome

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/DispatcherServletAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public ConditionOutcome getMatchOutcome(ConditionContext context,
174174
.match(message.didNotFind("dispatcher servlet beans").atAll());
175175
}
176176
return ConditionOutcome.match(message
177-
.found("dipatcher servlet bean", "dispatcher servlet beans")
177+
.found("dispatcher servlet bean", "dispatcher servlet beans")
178178
.items(Style.QUOTE, dispatchServletBeans)
179179
.append("and none is named " + DEFAULT_DISPATCHER_SERVLET_BEAN_NAME));
180180
}

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ErrorMvcAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ private static class ErrorTemplateMissingCondition extends SpringBootCondition {
168168
public ConditionOutcome getMatchOutcome(ConditionContext context,
169169
AnnotatedTypeMetadata metadata) {
170170
ConditionMessage.Builder message = ConditionMessage
171-
.forCondition("ErrorTemplate Misssing");
171+
.forCondition("ErrorTemplate Missing");
172172
TemplateAvailabilityProviders providers = new TemplateAvailabilityProviders(
173173
context.getClassLoader());
174174
TemplateAvailabilityProvider provider = providers.getProvider("error",

spring-boot-test/src/main/java/org/springframework/boot/test/context/SpringBootTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
* {@link WebEnvironment#DEFINED_PORT defined} or {@link WebEnvironment#RANDOM_PORT
5656
* random} port.</li>
5757
* <li>Registers a {@link org.springframework.boot.test.web.client.TestRestTemplate
58-
* TestRestTemplate} bean for use in web tests that are using a fully running container
58+
* TestRestTemplate} bean for use in web tests that are using a fully running container.
5959
* </li>
6060
* </ul>
6161
*

spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/BuildInfoMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {
7070
}
7171
catch (NullAdditionalPropertyValueException ex) {
7272
throw new MojoFailureException(
73-
"Failed to generated build-info.properties. " + ex.getMessage(), ex);
73+
"Failed to generate build-info.properties. " + ex.getMessage(), ex);
7474
}
7575
catch (Exception ex) {
7676
throw new MojoExecutionException(ex.getMessage(), ex);

0 commit comments

Comments
 (0)