Merge branch '1.5.x'
This commit is contained in:
commit
8133b7f245
|
|
@ -42,6 +42,11 @@ public class CachePublicMetrics implements PublicMetrics {
|
|||
|
||||
private final Collection<CacheStatisticsProvider<?>> statisticsProviders;
|
||||
|
||||
/**
|
||||
* 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