Skip to content

Commit e7bf415

Browse files
committed
Merge pull request spring-projects#3809 from izeye/typo-20150822
* pr/3809: Fix typos
2 parents 69fcae6 + e2119d3 commit e7bf415

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
/**
2828
* {@link Conditional} that checks whether or not a default health indicator is enabled.
2929
* Matches if the value of the {@code management.health.<name>.enabled} property is
30-
* {@code true}. Otherwise , matches if the value of the
30+
* {@code true}. Otherwise, matches if the value of the
3131
* {@code management.health.defaults.enabled} property is {@code true} or if it is not
3232
* configured.
3333
*
@@ -38,7 +38,7 @@
3838
@Target({ ElementType.TYPE, ElementType.METHOD })
3939
@Documented
4040
@Conditional(OnEnabledHealthIndicatorCondition.class)
41-
public @interface ConditionalOnEnablednHealthIndicator {
41+
public @interface ConditionalOnEnabledHealthIndicator {
4242

4343
/**
4444
* The name of the health indicator.

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/HealthIndicatorAutoConfiguration.java

+9-9
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ CompositeHealthIndicatorConfiguration.class, getClass())
153153
@Configuration
154154
@ConditionalOnClass(JdbcTemplate.class)
155155
@ConditionalOnBean(DataSource.class)
156-
@ConditionalOnEnablednHealthIndicator("db")
156+
@ConditionalOnEnabledHealthIndicator("db")
157157
public static class DataSourcesHealthIndicatorConfiguration extends
158158
CompositeHealthIndicatorConfiguration<DataSourceHealthIndicator, DataSource>
159159
implements InitializingBean {
@@ -193,7 +193,7 @@ private String getValidationQuery(DataSource source) {
193193

194194
@Configuration
195195
@ConditionalOnBean(MongoTemplate.class)
196-
@ConditionalOnEnablednHealthIndicator("mongo")
196+
@ConditionalOnEnabledHealthIndicator("mongo")
197197
public static class MongoHealthIndicatorConfiguration extends
198198
CompositeHealthIndicatorConfiguration<MongoHealthIndicator, MongoTemplate> {
199199

@@ -210,7 +210,7 @@ public HealthIndicator mongoHealthIndicator() {
210210

211211
@Configuration
212212
@ConditionalOnBean(RedisConnectionFactory.class)
213-
@ConditionalOnEnablednHealthIndicator("redis")
213+
@ConditionalOnEnabledHealthIndicator("redis")
214214
public static class RedisHealthIndicatorConfiguration
215215
extends
216216
CompositeHealthIndicatorConfiguration<RedisHealthIndicator, RedisConnectionFactory> {
@@ -228,7 +228,7 @@ public HealthIndicator redisHealthIndicator() {
228228

229229
@Configuration
230230
@ConditionalOnBean(RabbitTemplate.class)
231-
@ConditionalOnEnablednHealthIndicator("rabbit")
231+
@ConditionalOnEnabledHealthIndicator("rabbit")
232232
public static class RabbitHealthIndicatorConfiguration extends
233233
CompositeHealthIndicatorConfiguration<RabbitHealthIndicator, RabbitTemplate> {
234234

@@ -245,7 +245,7 @@ public HealthIndicator rabbitHealthIndicator() {
245245

246246
@Configuration
247247
@ConditionalOnBean(SolrServer.class)
248-
@ConditionalOnEnablednHealthIndicator("solr")
248+
@ConditionalOnEnabledHealthIndicator("solr")
249249
public static class SolrHealthIndicatorConfiguration extends
250250
CompositeHealthIndicatorConfiguration<SolrHealthIndicator, SolrServer> {
251251

@@ -261,7 +261,7 @@ public HealthIndicator solrHealthIndicator() {
261261
}
262262

263263
@Configuration
264-
@ConditionalOnEnablednHealthIndicator("diskspace")
264+
@ConditionalOnEnabledHealthIndicator("diskspace")
265265
public static class DiskSpaceHealthIndicatorConfiguration {
266266

267267
@Bean
@@ -280,7 +280,7 @@ public DiskSpaceHealthIndicatorProperties diskSpaceHealthIndicatorProperties() {
280280

281281
@Configuration
282282
@ConditionalOnBean(JavaMailSenderImpl.class)
283-
@ConditionalOnEnablednHealthIndicator("mail")
283+
@ConditionalOnEnabledHealthIndicator("mail")
284284
public static class MailHealthIndicatorConfiguration
285285
extends
286286
CompositeHealthIndicatorConfiguration<MailHealthIndicator, JavaMailSenderImpl> {
@@ -298,7 +298,7 @@ public HealthIndicator mailHealthIndicator() {
298298

299299
@Configuration
300300
@ConditionalOnBean(ConnectionFactory.class)
301-
@ConditionalOnEnablednHealthIndicator("jms")
301+
@ConditionalOnEnabledHealthIndicator("jms")
302302
public static class JmsHealthIndicatorConfiguration extends
303303
CompositeHealthIndicatorConfiguration<JmsHealthIndicator, ConnectionFactory> {
304304

@@ -315,7 +315,7 @@ public HealthIndicator jmsHealthIndicator() {
315315

316316
@Configuration
317317
@ConditionalOnBean(Client.class)
318-
@ConditionalOnEnablednHealthIndicator("elasticsearch")
318+
@ConditionalOnEnabledHealthIndicator("elasticsearch")
319319
@EnableConfigurationProperties(ElasticsearchHealthIndicatorProperties.class)
320320
public static class ElasticsearchHealthIndicatorConfiguration extends
321321
CompositeHealthIndicatorConfiguration<ElasticsearchHealthIndicator, Client> {

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/OnEnabledHealthIndicatorCondition.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*/
3232
class OnEnabledHealthIndicatorCondition extends SpringBootCondition {
3333

34-
private static final String ANNOTATION_CLASS = ConditionalOnEnablednHealthIndicator.class
34+
private static final String ANNOTATION_CLASS = ConditionalOnEnabledHealthIndicator.class
3535
.getName();
3636

3737
@Override

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/HealthIndicatorAutoConfigurationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public void defaultHealthIndicatorsDisabledButOne() {
122122
this.context.register(HealthIndicatorAutoConfiguration.class,
123123
ManagementServerProperties.class);
124124
EnvironmentTestUtils.addEnvironment(this.context,
125-
"management.health.enabled:false",
125+
"management.health.defaults.enabled:false",
126126
"management.health.diskspace.enabled:true");
127127
this.context.refresh();
128128
Map<String, HealthIndicator> beans = this.context

spring-boot/src/main/java/org/springframework/boot/context/embedded/AbstractConfigurableEmbeddedServletContainer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ private void checkContextPath(String contextPath) {
114114
}
115115
if (!contextPath.startsWith("/") || contextPath.endsWith("/")) {
116116
throw new IllegalArgumentException(
117-
"ContextPath must start with '/ and not end with '/'");
117+
"ContextPath must start with '/' and not end with '/'");
118118
}
119119
}
120120
}

spring-boot/src/test/java/org/springframework/boot/context/embedded/AbstractEmbeddedServletContainerFactoryTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -245,14 +245,14 @@ public void specificContextRoot() throws Exception {
245245
@Test
246246
public void contextPathMustStartWithSlash() throws Exception {
247247
this.thrown.expect(IllegalArgumentException.class);
248-
this.thrown.expectMessage("ContextPath must start with '/ and not end with '/'");
248+
this.thrown.expectMessage("ContextPath must start with '/' and not end with '/'");
249249
getFactory().setContextPath("missingslash");
250250
}
251251

252252
@Test
253253
public void contextPathMustNotEndWithSlash() throws Exception {
254254
this.thrown.expect(IllegalArgumentException.class);
255-
this.thrown.expectMessage("ContextPath must start with '/ and not end with '/'");
255+
this.thrown.expectMessage("ContextPath must start with '/' and not end with '/'");
256256
getFactory().setContextPath("extraslash/");
257257
}
258258

0 commit comments

Comments
 (0)