From 45b1de08f5204fdb66cb16e989163be1e060a04a Mon Sep 17 00:00:00 2001 From: Dave Brosius Date: Thu, 26 May 2016 18:10:38 -0400 Subject: [PATCH] remove dead field defaultNameCache resolves GitHub Issue #1220 --- .../netflix/hystrix/collapser/RequestCollapserFactory.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/hystrix-core/src/main/java/com/netflix/hystrix/collapser/RequestCollapserFactory.java b/hystrix-core/src/main/java/com/netflix/hystrix/collapser/RequestCollapserFactory.java index cec6ecc5c..d1c01e746 100644 --- a/hystrix-core/src/main/java/com/netflix/hystrix/collapser/RequestCollapserFactory.java +++ b/hystrix-core/src/main/java/com/netflix/hystrix/collapser/RequestCollapserFactory.java @@ -168,7 +168,6 @@ private RequestCollapser get * Clears all state. If new requests come in instances will be recreated and metrics started from scratch. */ public static void reset() { - defaultNameCache.clear(); globalScopedCollapsers.clear(); requestScopedCollapsers.clear(); HystrixTimer.reset(); @@ -283,10 +282,4 @@ public Setter andCollapserPropertiesDefaults(HystrixCollapserProperties.Setter p } } - - // this is a micro-optimization but saves about 1-2microseconds (on 2011 MacBook Pro) - // on the repetitive string processing that will occur on the same classes over and over again - @SuppressWarnings("rawtypes") - private static ConcurrentHashMap, String> defaultNameCache = new ConcurrentHashMap, String>(); - }