mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Merge branch '1.4.x' into 1.5.x
This commit is contained in:
+9
@@ -45,10 +45,19 @@ public class CachePublicMetrics implements PublicMetrics {
|
||||
@Autowired
|
||||
private Collection<CacheStatisticsProvider<?>> statisticsProviders;
|
||||
|
||||
/**
|
||||
* Create a new {@link CachePublicMetrics} instance.
|
||||
* @deprecated as of 1.5.4 in favor of {@link #CachePublicMetrics(Map, Collection)}
|
||||
*/
|
||||
@Deprecated
|
||||
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;
|
||||
|
||||
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user