This commit is contained in:
Johnny Lim 2015-11-15 11:51:48 +09:00 committed by Phillip Webb
parent 5c19d3bff3
commit 4369493f8d
5 changed files with 14 additions and 14 deletions

View File

@ -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)) {

View File

@ -54,7 +54,7 @@ public abstract class AbstractEndpoint<T> implements Endpoint<T>, 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<T> implements Endpoint<T>, 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

View File

@ -31,7 +31,7 @@ public interface Endpoint<T> {
/**
* 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();

View File

@ -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

View File

@ -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()