From 4369493f8da8cac9fed5e2013b774902098acdbf Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Sun, 15 Nov 2015 11:51:48 +0900 Subject: [PATCH] Polish --- .../cache/InfinispanCacheStatisticsProvider.java | 4 ++-- .../boot/actuate/endpoint/AbstractEndpoint.java | 4 ++-- .../boot/actuate/endpoint/Endpoint.java | 2 +- .../actuate/endpoint/mvc/HypermediaDisabled.java | 2 +- .../PublicMetricsAutoConfigurationTests.java | 16 ++++++++-------- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/cache/InfinispanCacheStatisticsProvider.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/cache/InfinispanCacheStatisticsProvider.java index 819b7118fe..2a424ae2b5 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/cache/InfinispanCacheStatisticsProvider.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/cache/InfinispanCacheStatisticsProvider.java @@ -55,13 +55,13 @@ public class InfinispanCacheStatisticsProvider statistics.setSize((long) size); if (size > 0) { // Let's initialize the stats if we have some data - initalizeStats(objectName, statistics); + initializeStats(objectName, statistics); } } return statistics; } - private void initalizeStats(ObjectName objectName, + private void initializeStats(ObjectName objectName, DefaultCacheStatistics statistics) { Double hitRatio = getAttribute(objectName, "hitRatio", Double.class); if ((hitRatio != null)) { diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/AbstractEndpoint.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/AbstractEndpoint.java index c488006bfb..0eb7d2d86a 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/AbstractEndpoint.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/AbstractEndpoint.java @@ -54,7 +54,7 @@ public abstract class AbstractEndpoint implements Endpoint, EnvironmentAwa private Boolean enabled; /** - * Create a new sensitive endpoint instance. The enpoint will enabled flag will be + * Create a new sensitive endpoint instance. The endpoint will enabled flag will be * based on the spring {@link Environment} unless explicitly set. * @param id the endpoint ID */ @@ -63,7 +63,7 @@ public abstract class AbstractEndpoint implements Endpoint, EnvironmentAwa } /** - * Create a new endpoint instance. The enpoint will enabled flag will be based on the + * Create a new endpoint instance. The endpoint will enabled flag will be based on the * spring {@link Environment} unless explicitly set. * @param id the endpoint ID * @param sensitive if the endpoint is sensitive by default diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/Endpoint.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/Endpoint.java index aa59b82a5d..d25791d763 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/Endpoint.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/Endpoint.java @@ -31,7 +31,7 @@ public interface Endpoint { /** * The logical ID of the endpoint. Must only contain simple letters, numbers and '_' - * characters (ie a {@literal "\w"} regex). + * characters (i.e. a {@literal "\w"} regex). * @return the endpoint ID */ String getId(); diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/HypermediaDisabled.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/HypermediaDisabled.java index 9be27aad91..a320ca9739 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/HypermediaDisabled.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/HypermediaDisabled.java @@ -26,7 +26,7 @@ import org.springframework.web.bind.annotation.RequestMapping; /** * Annotation to indicate that an {@link MvcEndpoint} class or {@link RequestMapping} - * method should't generate a hypermedia response. + * method shouldn't generate a hypermedia response. * * @author Dave Syer * @since 1.3.0 diff --git a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/PublicMetricsAutoConfigurationTests.java b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/PublicMetricsAutoConfigurationTests.java index a940180807..1d5c45c265 100644 --- a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/PublicMetricsAutoConfigurationTests.java +++ b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/PublicMetricsAutoConfigurationTests.java @@ -270,18 +270,18 @@ public class PublicMetricsAutoConfigurationTests { @Bean public DataSource tomcatDataSource() { - return InitalizedBuilder.create() + return InitializedBuilder.create() .type(org.apache.tomcat.jdbc.pool.DataSource.class).build(); } @Bean public DataSource hikariDS() { - return InitalizedBuilder.create().type(HikariDataSource.class).build(); + return InitializedBuilder.create().type(HikariDataSource.class).build(); } @Bean public DataSource commonsDbcpDataSource() { - return InitalizedBuilder.create().type(BasicDataSource.class).build(); + return InitializedBuilder.create().type(BasicDataSource.class).build(); } } @@ -291,13 +291,13 @@ public class PublicMetricsAutoConfigurationTests { @Bean @Primary public DataSource myDataSource() { - return InitalizedBuilder.create() + return InitializedBuilder.create() .type(org.apache.tomcat.jdbc.pool.DataSource.class).build(); } @Bean public DataSource commonsDbcpDataSource() { - return InitalizedBuilder.create().type(BasicDataSource.class).build(); + return InitializedBuilder.create().type(BasicDataSource.class).build(); } } @@ -307,13 +307,13 @@ public class PublicMetricsAutoConfigurationTests { @Bean @Primary public DataSource myDataSource() { - return InitalizedBuilder.create() + return InitializedBuilder.create() .type(org.apache.tomcat.jdbc.pool.DataSource.class).build(); } @Bean public DataSource dataSource() { - return InitalizedBuilder.create().type(BasicDataSource.class).build(); + return InitializedBuilder.create().type(BasicDataSource.class).build(); } } @@ -381,7 +381,7 @@ public class PublicMetricsAutoConfigurationTests { } - private static class InitalizedBuilder { + private static class InitializedBuilder { public static DataSourceBuilder create() { return DataSourceBuilder.create()