Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make sure we're instrumenting cloned InstrumentedEhcaches as well.

  • Loading branch information...
commit ba3810c2a2216824c9c237f868616dd173e0b34f 1 parent c78b02b
@codahale codahale authored
View
2  metrics-ehcache/src/main/java/com/yammer/metrics/ehcache/InstrumentedEhcache.java
@@ -312,7 +312,7 @@ public void clearStatistics() {
@Override
public Object clone() throws CloneNotSupportedException {
- return cache.clone();
+ return InstrumentedEhcache.instrument((Ehcache) cache.clone());
}
@Override
Please sign in to comment.
Something went wrong with that request. Please try again.