Skip to content

Commit 4369493

Browse files
izeyephilwebb
authored andcommitted
Polish
1 parent 5c19d3b commit 4369493

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/cache/InfinispanCacheStatisticsProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ protected CacheStatistics getCacheStatistics(ObjectName objectName) {
5555
statistics.setSize((long) size);
5656
if (size > 0) {
5757
// Let's initialize the stats if we have some data
58-
initalizeStats(objectName, statistics);
58+
initializeStats(objectName, statistics);
5959
}
6060
}
6161
return statistics;
6262
}
6363

64-
private void initalizeStats(ObjectName objectName,
64+
private void initializeStats(ObjectName objectName,
6565
DefaultCacheStatistics statistics) {
6666
Double hitRatio = getAttribute(objectName, "hitRatio", Double.class);
6767
if ((hitRatio != null)) {

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/AbstractEndpoint.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public abstract class AbstractEndpoint<T> implements Endpoint<T>, EnvironmentAwa
5454
private Boolean enabled;
5555

5656
/**
57-
* Create a new sensitive endpoint instance. The enpoint will enabled flag will be
57+
* Create a new sensitive endpoint instance. The endpoint will enabled flag will be
5858
* based on the spring {@link Environment} unless explicitly set.
5959
* @param id the endpoint ID
6060
*/
@@ -63,7 +63,7 @@ public AbstractEndpoint(String id) {
6363
}
6464

6565
/**
66-
* Create a new endpoint instance. The enpoint will enabled flag will be based on the
66+
* Create a new endpoint instance. The endpoint will enabled flag will be based on the
6767
* spring {@link Environment} unless explicitly set.
6868
* @param id the endpoint ID
6969
* @param sensitive if the endpoint is sensitive by default

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/Endpoint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public interface Endpoint<T> {
3131

3232
/**
3333
* The logical ID of the endpoint. Must only contain simple letters, numbers and '_'
34-
* characters (ie a {@literal "\w"} regex).
34+
* characters (i.e. a {@literal "\w"} regex).
3535
* @return the endpoint ID
3636
*/
3737
String getId();

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/HypermediaDisabled.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
/**
2828
* Annotation to indicate that an {@link MvcEndpoint} class or {@link RequestMapping}
29-
* method should't generate a hypermedia response.
29+
* method shouldn't generate a hypermedia response.
3030
*
3131
* @author Dave Syer
3232
* @since 1.3.0

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -270,18 +270,18 @@ static class MultipleDataSourcesConfig {
270270

271271
@Bean
272272
public DataSource tomcatDataSource() {
273-
return InitalizedBuilder.create()
273+
return InitializedBuilder.create()
274274
.type(org.apache.tomcat.jdbc.pool.DataSource.class).build();
275275
}
276276

277277
@Bean
278278
public DataSource hikariDS() {
279-
return InitalizedBuilder.create().type(HikariDataSource.class).build();
279+
return InitializedBuilder.create().type(HikariDataSource.class).build();
280280
}
281281

282282
@Bean
283283
public DataSource commonsDbcpDataSource() {
284-
return InitalizedBuilder.create().type(BasicDataSource.class).build();
284+
return InitializedBuilder.create().type(BasicDataSource.class).build();
285285
}
286286
}
287287

@@ -291,13 +291,13 @@ static class MultipleDataSourcesWithPrimaryConfig {
291291
@Bean
292292
@Primary
293293
public DataSource myDataSource() {
294-
return InitalizedBuilder.create()
294+
return InitializedBuilder.create()
295295
.type(org.apache.tomcat.jdbc.pool.DataSource.class).build();
296296
}
297297

298298
@Bean
299299
public DataSource commonsDbcpDataSource() {
300-
return InitalizedBuilder.create().type(BasicDataSource.class).build();
300+
return InitializedBuilder.create().type(BasicDataSource.class).build();
301301
}
302302
}
303303

@@ -307,13 +307,13 @@ static class MultipleDataSourcesWithCustomPrimaryConfig {
307307
@Bean
308308
@Primary
309309
public DataSource myDataSource() {
310-
return InitalizedBuilder.create()
310+
return InitializedBuilder.create()
311311
.type(org.apache.tomcat.jdbc.pool.DataSource.class).build();
312312
}
313313

314314
@Bean
315315
public DataSource dataSource() {
316-
return InitalizedBuilder.create().type(BasicDataSource.class).build();
316+
return InitializedBuilder.create().type(BasicDataSource.class).build();
317317
}
318318
}
319319

@@ -381,7 +381,7 @@ public CacheManager second() {
381381

382382
}
383383

384-
private static class InitalizedBuilder {
384+
private static class InitializedBuilder {
385385

386386
public static DataSourceBuilder create() {
387387
return DataSourceBuilder.create()

0 commit comments

Comments
 (0)