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