Polish
This commit is contained in:
parent
8e5bf4b22a
commit
4a95b2f174
|
|
@ -45,9 +45,17 @@ public class CachePublicMetrics implements PublicMetrics {
|
|||
@Autowired
|
||||
private Collection<CacheStatisticsProvider<?>> statisticsProviders;
|
||||
|
||||
/**
|
||||
* Create a new {@link CachePublicMetrics} instance.
|
||||
*/
|
||||
public CachePublicMetrics() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new {@link CachePublicMetrics} instance.
|
||||
* @param cacheManagers the cache managers
|
||||
* @param statisticsProviders the statistics providers
|
||||
*/
|
||||
public CachePublicMetrics(Map<String, CacheManager> cacheManagers,
|
||||
Collection<CacheStatisticsProvider<?>> statisticsProviders) {
|
||||
this.cacheManagers = cacheManagers;
|
||||
|
|
|
|||
|
|
@ -78,7 +78,6 @@ public class CachePublicMetricsTests {
|
|||
entry("cache.anotherCacheManager_foo.size", 0L));
|
||||
}
|
||||
|
||||
|
||||
private Map<String, Number> metrics(CachePublicMetrics cpm) {
|
||||
Collection<Metric<?>> metrics = cpm.metrics();
|
||||
assertThat(metrics).isNotNull();
|
||||
|
|
|
|||
Loading…
Reference in New Issue