Merge pull request #4493 from izeye/typo-20151115

* pr/4493:
  Polish
pull/3899/merge
Phillip Webb 9 years ago
commit 3a34e88db5

@ -55,13 +55,13 @@ public class InfinispanCacheStatisticsProvider
statistics.setSize((long) size); statistics.setSize((long) size);
if (size > 0) { if (size > 0) {
// Let's initialize the stats if we have some data // Let's initialize the stats if we have some data
initalizeStats(objectName, statistics); initializeStats(objectName, statistics);
} }
} }
return statistics; return statistics;
} }
private void initalizeStats(ObjectName objectName, private void initializeStats(ObjectName objectName,
DefaultCacheStatistics statistics) { DefaultCacheStatistics statistics) {
Double hitRatio = getAttribute(objectName, "hitRatio", Double.class); Double hitRatio = getAttribute(objectName, "hitRatio", Double.class);
if ((hitRatio != null)) { if ((hitRatio != null)) {

@ -54,7 +54,7 @@ public abstract class AbstractEndpoint<T> implements Endpoint<T>, EnvironmentAwa
private Boolean enabled; 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. * based on the spring {@link Environment} unless explicitly set.
* @param id the endpoint ID * @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. * spring {@link Environment} unless explicitly set.
* @param id the endpoint ID * @param id the endpoint ID
* @param sensitive if the endpoint is sensitive by default * @param sensitive if the endpoint is sensitive by default

@ -31,7 +31,7 @@ public interface Endpoint<T> {
/** /**
* The logical ID of the endpoint. Must only contain simple letters, numbers and '_' * 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 * @return the endpoint ID
*/ */
String getId(); String getId();

@ -26,7 +26,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
/** /**
* Annotation to indicate that an {@link MvcEndpoint} class or {@link 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 * @author Dave Syer
* @since 1.3.0 * @since 1.3.0

@ -270,18 +270,18 @@ public class PublicMetricsAutoConfigurationTests {
@Bean @Bean
public DataSource tomcatDataSource() { public DataSource tomcatDataSource() {
return InitalizedBuilder.create() return InitializedBuilder.create()
.type(org.apache.tomcat.jdbc.pool.DataSource.class).build(); .type(org.apache.tomcat.jdbc.pool.DataSource.class).build();
} }
@Bean @Bean
public DataSource hikariDS() { public DataSource hikariDS() {
return InitalizedBuilder.create().type(HikariDataSource.class).build(); return InitializedBuilder.create().type(HikariDataSource.class).build();
} }
@Bean @Bean
public DataSource commonsDbcpDataSource() { 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 @Bean
@Primary @Primary
public DataSource myDataSource() { public DataSource myDataSource() {
return InitalizedBuilder.create() return InitializedBuilder.create()
.type(org.apache.tomcat.jdbc.pool.DataSource.class).build(); .type(org.apache.tomcat.jdbc.pool.DataSource.class).build();
} }
@Bean @Bean
public DataSource commonsDbcpDataSource() { 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 @Bean
@Primary @Primary
public DataSource myDataSource() { public DataSource myDataSource() {
return InitalizedBuilder.create() return InitializedBuilder.create()
.type(org.apache.tomcat.jdbc.pool.DataSource.class).build(); .type(org.apache.tomcat.jdbc.pool.DataSource.class).build();
} }
@Bean @Bean
public DataSource dataSource() { 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() { public static DataSourceBuilder create() {
return DataSourceBuilder.create() return DataSourceBuilder.create()

Loading…
Cancel
Save